Added LOG, ERROR and WARNING, [debug_message]-based macros
This commit is contained in:
parent
a7b3efcefc
commit
3a9c227a6f
1 changed files with 39 additions and 0 deletions
|
@ -503,3 +503,42 @@
|
|||
{FADE_STEP -32 5}
|
||||
{FADE_STEP 0 5}
|
||||
#enddef
|
||||
|
||||
#define LOG TEXT
|
||||
# Logs a message to console. It does nothing unless the 'notifs'
|
||||
# log domain is set to log level at application startup (usually with
|
||||
# --log-info=notifs).
|
||||
#
|
||||
# Example:
|
||||
# ! {LOG "player moved to forbidden location"}
|
||||
[debug_message]
|
||||
logger=log
|
||||
message={TEXT}
|
||||
[/debug_message]
|
||||
#enddef
|
||||
|
||||
#define WARNING TEXT
|
||||
# Logs a warning to console. It does nothing unless the 'notifs'
|
||||
# log domain is set to warning level at application startup (usually with
|
||||
# --log-warning=notifs).
|
||||
#
|
||||
# Example:
|
||||
# ! {WARNING "malformed unit data"}
|
||||
[debug_message]
|
||||
logger=warn
|
||||
message={TEXT}
|
||||
[/debug_message]
|
||||
#enddef
|
||||
|
||||
#define ERROR TEXT
|
||||
# Logs an error to console. It does nothing unless the 'notifs'
|
||||
# log domain is set to error level at application startup (usually with
|
||||
# --log-error=notifs), which is the default.
|
||||
#
|
||||
# Example:
|
||||
# ! {ERROR "could not respawn hero at 2,4"}
|
||||
[debug_message]
|
||||
logger=err
|
||||
message={TEXT}
|
||||
[/debug_message]
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue