cee::LogDestination Class Referenceabstract

Base class for log destinations. More...

Public Member Functions

virtual Str targetName () const =0
 Returns a string to identify the logger's target. More...
 
virtual void log (const LogEvent &logEvent)=0
 Sends event to logger. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 
Inheritance diagram for cee::LogDestination:
cee::RefCountedObject cee::LogDestinationConsole cee::LogDestinationFile

Detailed Description

Base class for log destinations.

Available log destinations are console and file. You can also create your own log destination by deriving from LogDestination and overriding the log method. This is useful if you already have a logging system in your application and would like to incorporate the logging message from Ceetron toolkits into your application log.

Member Function Documentation

virtual void cee::LogDestination::log ( const LogEvent logEvent)
pure virtual

Sends event to logger.

Implemented in cee::LogDestinationFile, and cee::LogDestinationConsole.

virtual Str cee::LogDestination::targetName ( ) const
pure virtual

Returns a string to identify the logger's target.

Implemented in cee::LogDestinationConsole, and cee::LogDestinationFile.