#include <LogOutputters.h>
Inherits ILogOutputter.
Inheritance diagram for CConsoleLogOutputter:
Public Member Functions | |
CConsoleLogOutputter () | |
virtual | ~CConsoleLogOutputter () |
virtual void | open (const char *title) |
Open the outputter. | |
virtual void | close () |
Close the outputter. | |
virtual void | show (bool showIfEmpty) |
Show the outputter. | |
virtual bool | write (ELevel level, const char *message) |
virtual const char * | getNewline () const |
Returns the newline sequence for the outputter. |
This outputter writes output to the console. The level for each message is ignored.
Definition at line 47 of file LogOutputters.h.
void CConsoleLogOutputter::close | ( | ) | [virtual] |
Close the outputter.
Close the outputter. Calling this method on an already closed outputter must have no effect.
Implements ILogOutputter.
Definition at line 84 of file LogOutputters.cpp.
const char * CConsoleLogOutputter::getNewline | ( | ) | const [virtual] |
Returns the newline sequence for the outputter.
Different outputters use different character sequences for newlines. This method returns the appropriate newline sequence for this outputter.
Implements ILogOutputter.
Definition at line 103 of file LogOutputters.cpp.
void CConsoleLogOutputter::open | ( | const char * | title | ) | [virtual] |
Open the outputter.
Opens the outputter for writing. Calling this method on an already open outputter must have no effect.
Implements ILogOutputter.
Definition at line 78 of file LogOutputters.cpp.
void CConsoleLogOutputter::show | ( | bool | showIfEmpty | ) | [virtual] |
Show the outputter.
Causes the output to become visible. This generally only makes sense for a logger in a graphical user interface. Other implementations will do nothing. Iff showIfEmpty
is false
then the implementation may optionally only show the log if it's not empty.
Implements ILogOutputter.
Definition at line 90 of file LogOutputters.cpp.