]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Log.hh
new level-based controllers
[chaz/yoink] / src / Moof / Log.hh
index cdd5cd4e751e8e4374b94babbcc2be10f249f991..1f9d0c6b084d9a6f404f3ec756d7c6eb9418c9c2 100644 (file)
@@ -37,7 +37,6 @@
  */
 
 #include <cstdlib>             // exit
-#include <cstring>             // strerror
 
 
 /**
@@ -67,8 +66,9 @@ enum LogLevel
        LOG_NONE                = -1,           ///< Disable all logging.
        LOG_ERROR               =  1,           ///< Log only errors.
        LOG_WARNING             =  2,           ///< Log warnings and errors.
-       LOG_INFO                =  3,           ///< Log info, warnings, errors.
-       LOG_DEBUG               =  4            ///< Log all messages.
+       LOG_SCRIPT              =  3,           ///< Log messages from Lua, too.
+       LOG_INFO                =  4,           ///< Log info, warnings, errors.
+       LOG_DEBUG               =  5,           ///< Log all messages.
 };
 
 
@@ -114,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.016451 seconds and 4 git commands to generate.