From 7ebc1d69bdb15793f96b9fb7506ecbf8cdafc729 Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Mon, 12 Jan 2009 18:32:35 +0000 Subject: [PATCH] Add the DEBUG macro to accompany LOG, ERROR and WARNING. --- data/core/macros/interface-utils.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/data/core/macros/interface-utils.cfg b/data/core/macros/interface-utils.cfg index 5730d338bda..507983e1d78 100644 --- a/data/core/macros/interface-utils.cfg +++ b/data/core/macros/interface-utils.cfg @@ -443,6 +443,19 @@ {FADE_STEP 0 5} #enddef +#define DEBUG TEXT + # Logs a debug message to console. It does nothing unless the 'wml' + # log domain is set to debug level at application startup (usually with + # --log-debug=wml). + # + # Example: + # ! {DEBUG "inconsistency: $unit.id is not loyal!"} + [wml_message] + logger=debug + message={TEXT} + [/wml_message] +#enddef + #define LOG TEXT # Logs a message to console. It does nothing unless the 'wml' # log domain is set to log level at application startup (usually with