Added LOG, ERROR and WARNING, [debug_message]-based macros

This commit is contained in:
Ignacio R. Morelle 2008-08-10 20:58:08 +00:00
parent a7b3efcefc
commit 3a9c227a6f

View file

@ -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