Inherits ILogOutputter.
Public Member Functions | |
CAutoStartOutputter (CString *msg) | |
virtual void | open (const char *) |
Open the outputter. | |
virtual void | close () |
Close the outputter. | |
virtual void | show (bool) |
Show the outputter. | |
virtual bool | write (ELevel level, const char *message) |
Write a message with level. | |
virtual const char * | getNewline () const |
Returns the newline sequence for the outputter. |
Definition at line 35 of file CAutoStart.cpp.
virtual void CAutoStartOutputter::close | ( | ) | [inline, virtual] |
Close the outputter.
Close the outputter. Calling this method on an already closed outputter must have no effect.
Implements ILogOutputter.
Definition at line 42 of file CAutoStart.cpp.
virtual const char* CAutoStartOutputter::getNewline | ( | ) | const [inline, 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 45 of file CAutoStart.cpp.
virtual void CAutoStartOutputter::open | ( | const char * | title | ) | [inline, 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 41 of file CAutoStart.cpp.
virtual void CAutoStartOutputter::show | ( | bool | showIfEmpty | ) | [inline, 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 43 of file CAutoStart.cpp.
bool CAutoStartOutputter::write | ( | ELevel | level, | |
const char * | message | |||
) | [virtual] |
Write a message with level.
Writes message
, which has the given level
, to a log. If this method returns true then CLog will stop passing the message to all outputters in the outputter chain, otherwise it continues. Most implementations should return true.
Implements ILogOutputter.
Definition at line 52 of file CAutoStart.cpp.
References CLog::kERROR.