X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLog.hh;h=09130ed5010aeb535eef7abc09802d959494c98e;hp=263ede8fdff0d950743139b39a5f2159c166728b;hb=ca0f7bdfba63140dca0bd20586d31980f3938eb2;hpb=660e768e64c2c30928c7f157d5ff34195a4347fa diff --git a/src/Moof/Log.hh b/src/Moof/Log.hh index 263ede8..09130ed 100644 --- a/src/Moof/Log.hh +++ b/src/Moof/Log.hh @@ -66,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. }; @@ -113,6 +114,10 @@ void logInfo(const char* fmt, ...); void logDebug(const char* fmt, ...); +class Script; +int logScript(Script& script); +void importLogScript(Script& script); + } // namespace Mf