]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Log.hh
new level-based controllers
[chaz/yoink] / src / Moof / Log.hh
index 3f6b6d7e45013b8360af975288d03082c6ed0d91..1f9d0c6b084d9a6f404f3ec756d7c6eb9418c9c2 100644 (file)
@@ -37,7 +37,6 @@
  */
 
 #include <cstdlib>             // exit
-#include <cstring>             // strerror
 
 
 /**
@@ -62,13 +61,15 @@ namespace Mf {
  * @see LogLevel()
  */
 
-typedef enum {
-       NONE            = -1,           ///< Disable all logging.
-       ERROR           =  1,           ///< Log only errors.
-       WARNING         =  2,           ///< Log warnings and errors.
-       INFO            =  3,           ///< Log info, warnings, errors.
-       DEBUGGING       =  4            ///< Log all messages.
-} LogLevel;
+enum LogLevel
+{
+       LOG_NONE                = -1,           ///< Disable all logging.
+       LOG_ERROR               =  1,           ///< Log only errors.
+       LOG_WARNING             =  2,           ///< Log warnings and errors.
+       LOG_SCRIPT              =  3,           ///< Log messages from Lua, too.
+       LOG_INFO                =  4,           ///< Log info, warnings, errors.
+       LOG_DEBUG               =  5,           ///< Log all messages.
+};
 
 
 /**
@@ -113,6 +114,11 @@ void logInfo(const char* fmt, ...);
 
 void logDebug(const char* fmt, ...);
 
+void logScript(const char* fmt, ...);
+class Script;
+int logScript(Script& script);
+void importLogScript(Script& script);
+
 
 } // namespace Mf
 
This page took 0.01651 seconds and 4 git commands to generate.