Logging class. More...
Public Types | |
| enum | LogPriority { DEBUG = 1, INFO, NOTICE, WARNING, ERROR, CRITICAL } |
Low Level Methods | |
| bool | SetFile (string filename, bool append=true) |
| Sets the specified file as log file. | |
| bool | IsOpen () |
| Check if log file is open. | |
| void | SetPriority (int priority) |
| Set lowest priority that will get logged. | |
| void | SetMBPriority (int priority) |
| Set lowest priority that will get message boxed. | |
| void | Print (string message) |
| Log a message without priority checking. | |
| void | Debug (string message) |
| Log a message with debug priority. | |
| void | Info (string message) |
| Log a message with info priority. | |
| void | Notice (string message) |
| Log a message with notice priority. | |
| void | Warning (string message) |
| Log a message with warning priority. | |
| void | Error (string message) |
| Log a message with error priority. | |
| void | Critical (string message) |
| Log a message with critical priority. | |
| void | Log (int priority, string message) |
| Log a message with the specified priority. | |
Logging class.
| enum Log::LogPriority |
Log priority levels to determine the log output.
| void Log::Log | ( | int | priority, |
| string | message | ||
| ) |
Log a message with the specified priority.
| priority | The priority of this log message. |
| message | The string to write to the log file. |
| bool Log::SetFile | ( | string | filename, |
| bool | append = true |
||
| ) |
Sets the specified file as log file.
| filename | Name of the file to put log messages |
| append |
|
| void Log::SetMBPriority | ( | int | priority | ) |
Set lowest priority that will get message boxed.
If priority is larger then no message box will be displayed.
| void Log::Print | ( | string | message | ) |
Log a message without priority checking.
| message | The string to write to the log file. |
| void Log::Debug | ( | string | message | ) |
Log a message with debug priority.
| message | The string to write to the log file. |
| void Log::Info | ( | string | message | ) |
Log a message with info priority.
| message | The string to write to the log file. |
| void Log::Notice | ( | string | message | ) |
Log a message with notice priority.
| message | The string to write to the log file. |
| void Log::Warning | ( | string | message | ) |
Log a message with warning priority.
| message | The string to write to the log file. |
| void Log::Error | ( | string | message | ) |
Log a message with error priority.
| message | The string to write to the log file. |
| void Log::Critical | ( | string | message | ) |
Log a message with critical priority.
| message | The string to write to the log file. |
1.8.1.1