- Inherits from:
- Object
- Conforms to:
- DLogger
- Declared in:
- DSystemLogger.h
Object
|
+---DSystemLogger
Class Description
The DSystemLogger class implements methods for continuous logging
to the system logger. On Unix this will be the syslog deamon. On
Win32 there is not an usable logger present. So this class will only
be present on Unix.
- Last modified:
- 31-Oct-2007 (DSystemLogger.h)
Instance Variables
- protected int _mask
- the (copy of) the mask
- Constructors
- - (DSystemLogger *) init
- Initialise a default system logger
- Returns:
- the object
- - (DSystemLogger *) init :(const char *) appName :(BOOL) toStdErr
- Initialise a system logger
- Parameters:
- appName - the application name (or NULL)
toStdErr - also logging to stderr ?
- Returns:
- the object
- Copy constructor
- - shallowCopy
- Do a shallow copy of the object (not implemented)
- Returns:
- the object
- Deconstructor
- - free
- Free the object
- Returns:
- the object
- Implementation of interface DLogger
- - (BOOL) doLog :(int) level :(const char *) message
- Log an event by the logger
- Parameters:
- level - the level of the event
message - the message to be logged
parameters - the optional parameters for the message
- Returns:
- success
- - (int) mask :(int) levels
- Set the active levels
- Parameters:
- level - the bitwise or'ed active levels
- Returns:
- the previous mask
- - (int) mask :(int) high :(int) low
- Set the active level range
- Parameters:
- high - the highest level to mask
low - the lowest level to mask
- Returns:
- the previous mask
generated 05-Nov-2007 by ObjcDoc 3.0.0