CSystemLogOutputter Class Reference

Write log to system log. More...

#include <LogOutputters.h>

Inherits ILogOutputter.

Collaboration diagram for CSystemLogOutputter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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)
 Write a message with level.
virtual const char * getNewline () const
 Returns the newline sequence for the outputter.

Detailed Description

Write log to system log.

This outputter writes output to the system log.

Definition at line 83 of file LogOutputters.h.


Member Function Documentation

void CSystemLogOutputter::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 130 of file LogOutputters.cpp.

const char * CSystemLogOutputter::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 173 of file LogOutputters.cpp.

void CSystemLogOutputter::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 124 of file LogOutputters.cpp.

void CSystemLogOutputter::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 136 of file LogOutputters.cpp.

bool CSystemLogOutputter::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 142 of file LogOutputters.cpp.

References IArchLog::kDEBUG, IArchLog::kERROR, CLog::kERROR, CLog::kFATAL, IArchLog::kINFO, CLog::kINFO, IArchLog::kNOTE, CLog::kNOTE, IArchLog::kWARNING, and CLog::kWARNING.


The documentation for this class was generated from the following files:

Generated on 12 Nov 2010 for synergy-plus by  doxygen 1.6.1