|
|
Log is an interface that sysadm services use to log various levels of messages. The destination of log messages is controlled by sysadmd command line options (in /etc/inetd.conf), and log messages are also available to clients via the "log" service.
Messages logged via Log do not go to syslog unless specified on the sysadmd command line in /etc/inetd.conf.
Log notifies its list of LogListeners whenever a message is logged. The LogListeners output the messages to files, syslog, or whatever is appropriate.
Each log message consists of a "module" string that represents the service the message is coming from (e.g. sysadmd), a "level" (which is implicit in the static logging methods), and a printf-style format string and varargs.
enum |
Each message that's logged has a level associated with it. Messages can be filtered based on their levels.
These values correspond to values in the java version of this class, so don't change them arbitrarily.
enum |
MAXLEN is the longest a message can be.
void |
[static]
These static methods are used by sysadmd code and associated services for logging.
void |
[static]
void |
[static]
void |
[static]
void |
[static]
void |
[static]
const char* |
[static]
Convenience method for turning "level" into a localized string.
Log& |
[static]
Get access to an instance of Log, for calling one of the non-static methods.
void |
Log a message. The static logging methods all end up calling this eventually.
void |
Add a listener to be notified of messages.
LogListener* |
Remove a listener from the the list of listeners that get notified when a message arrives.
void |
Remove and delete a listener from the list of listeners that get notified when a message arrives.
Generated by: rusty@irem on Mon Sep 18 18:07:52 2000, using kdoc 2.0a36. |