![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The logger class.
Initialize the logger module. Initializing is done by the engine's core module at startup. The core sets the log file name to IEngineConfiguration::GetLogFileFullPath(). If the log file name is empty no file is written.
Init(String logFileName)
logFileName | The file name of the log file. |
Deinitialize the logger module. Deinitializing is done by the engine's core module at shutdown.
DeInit()
Set the log file name. If the log file name is empty no file is written.
SetLogFileName(String logFileName)
logFileName | The file name of the log file. |
Get the log file name.
String GetLogFileName()
Set the trace items' bit mask. The itemMask parameter represents a bit mask of individual values from the IEnums::DebugOutputFunctionItem enumeration, which can be used to select individual items to trace for each function/method call.
SetTraceFunctionItems(Integer itemMask)
itemMask | The trace item bit mask. |
Get the trace items' bit mask.
Integer GetTraceFunctionItems()
Set the global log level.
SetLogLevel(Integer level)
level | The log level. |
Get the global log level.
Integer GetLogLevel()
Print a message to the system's debug logging output. If a log file name is set, the string is added to the file.
PrintDebug(String message)
message | The message string to print. |
Print a message to the system's error logging output. If a log file name is set, the string is added to the file.
PrintError(String message)
message | The message string to print. |