KF2-YetAnotherScoreboard/ScoreboardExt/Logger.uci
2021-06-13 03:02:17 +03:00

9 lines
443 B
Plaintext

`define scelog(text, cond) `log(`text, `cond, 'ScoreboardExt')
`define info(text) `scelog("[INFO]"@`text, true)
`define warning(text) `scelog("[WARNING]"@`text, true)
`define error(text) `scelog("[ERROR]"@`text, true)
`define debug(text) `scelog("[DEBUG]"@`text, `bEnableDebug)
`define callstack() `scelog("[CALLSTACK]"@`Location@"ROLE="$ROLE, `bEnableCallstack)
`define callstack_static(text) `scelog("[CALLSTACK]"@`text, `bEnableCallstack)