ConsoleLogger Class Reference
A logger that writes to the console (the standard error stream).
More...
#include <ConsoleLogger.h++>
List of all members.
Detailed Description
A logger that writes to the console (the standard error stream).
- Author:
- Mark Lindner
Constructor & Destructor Documentation
Construct a new ConsoleLogger with the given log message format.
- Parameters:
-
| format | The log message format. |
Member Function Documentation
| void disableLogLevel |
( |
LogLevel |
level |
) |
[inherited] |
Disable a specific log level.
- Parameters:
-
| level | The level to disable. |
| void enableLogLevel |
( |
LogLevel |
level |
) |
[inherited] |
Enable a specific log level.
- Parameters:
-
| level | The level to enable. |
| LogFormat& getLogFormat |
( |
|
) |
[inline, inherited] |
| bool isLogLevelEnabled |
( |
LogLevel |
level |
) |
const [inherited] |
Test if a specific log level is enabled.
| void log |
( |
LogLevel |
level, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
message, |
|
|
|
... | |
|
) |
| | [inherited] |
Log a message.
- Parameters:
-
| level | The log level (severity). |
| file | The source filename. |
| line | The source file line number. |
| message | The log message. |
| ... | Optional message arguments. |
| void setFormat |
( |
const String & |
format |
) |
[inherited] |
Set the log message format.
- Parameters:
-
| format | The log message format. |
| void vlog |
( |
LogLevel |
level, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
message, |
|
|
va_list |
args | |
|
) |
| | [inherited] |
Log a message.
- Parameters:
-
| level | The log level (severity). |
| file | The source filename. |
| line | The source file line number. |
| message | The log message. |
| args | Optional message arguments. |
| bool write |
( |
CharBuffer & |
buffer |
) |
[protected, virtual] |
Write a preformatted log message to the console.
Implements Logger.
Member Data Documentation
The log buffer size.
Indicates the maximum length of a log message, in characters. Messages which exceed this length will be truncated.
The documentation for this class was generated from the following files: