class Logger

PeerHood logger class. This logging facility is used by the PeerHood library and the related plugin libraries. Note that the daemon uses different logging methods.

Public Methods

[more]void SetTarget(const char* aTarget)
Sets the logging output target.
[more]void Log(LogType aType, const char* aMessage)
Writes a log message.


Documentation

PeerHood logger class. This logging facility is used by the PeerHood library and the related plugin libraries. Note that the daemon uses different logging methods.
ovoid SetTarget(const char* aTarget)
Sets the logging output target. By default, all logging goes to stderr. This function can be used to override the default target. A target can be e.g. a file. The target can be changed on the fly.

Parameters:
aTarget - The new logging target.
Returns:
none

ovoid Log(LogType aType, const char* aMessage)
Writes a log message to the current logging target.

Parameters:
aType - The type of the message. Possible types are:<ll> <li>DEBUG: normal debug output</li> <li>ERROR: abnormal error condition</li></ll>
aMessage - The message.
Returns:
none


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.