Class Log.

Inherits Garbage

The Log class sends log messages to the Log server.

A Log object accepts messages via log() and sends them to the log server.

Log::Log( Log * parent )

Constructs a Log object with parent() parent.

Log::Log()

Constructs a Log object the parent() that's currently in Scope.

Reimplements Garbage::Garbage().

static bool Log::disastersYet()

Returns true if at least one disaster has been logged (on any Log object), and false if none have been.

The disaster need not be committed - disastersYet() returns true as soon as log() has been called for a disastrous error.

EString Log::id()

Returns the identity of this log; this is a string which can be used to locate log data in the logfile.

bool Log::isChildOf( Log * other ) const

Returns true if this object is other or a child of other (through the parent() chain), and false if not.

void Log::log( const EString & m, Severity s )

Logs m using severity s. What happens to the message depends on the type of Logger used, and the log server configuration.

Log * Log::parent() const

Returns a pointer to the Log that was in effect when this object was created. This object's id() is based on the parent's id().

The return value if parent() may be 0.

static void Log::setLogLevel( Severity s )

Sets s as the minimum severity messages must have to be logged.

static const char * Log::severity( Severity s )

This static function returns a string describing s.

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.