mail[Wesnoth-commits] r28451 - /trunk/data/core/macros/interface-utils.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by shadowm2006 on August 11, 2008 - 06:43:
Author: shadowmaster
Date: Sun Aug 10 22:58:08 2008
New Revision: 28451

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28451&view=rev
Log:
* Added LOG, ERROR and WARNING, [debug_message]-based macros

Modified:
    trunk/data/core/macros/interface-utils.cfg

Modified: trunk/data/core/macros/interface-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/interface-utils.cfg?rev=28451&r1=28450&r2=28451&view=diff
==============================================================================
--- trunk/data/core/macros/interface-utils.cfg (original)
+++ trunk/data/core/macros/interface-utils.cfg Sun Aug 10 22:58:08 2008
@@ -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




Related Messages


Powered by MHonArc, Updated Mon Aug 11 08:02:45 2008