HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3
An example logging statement is as follows:
logging{ channel lname {
file lame-servers.log; size 10M; severity info;
}; channel log ( syslog local0;);
category lame-server {lame;};
category default {log;}; };
If a list of channels is not specified for a category, then log messages in that category are sent to
the default category. For most of the categories, the default is default_syslog and
default_debug.
Channels and Channel Messages
A channel describes a destination (a file, syslog, or the bit bucket). A channel associates output
methods, format options, and severity levels with a name. You can use this name to select how
various categories of messages are logged.
Channels perform the following tasks:
• Limit incoming messages to a given severity level.
• Limit the size of the logging file.
• Manage multiple versions of the logging file (to maintain historic data).
• Direct the logging messages to any of the syslog facilities.
There are many default channels, and you can define more channels in the logging statement
in the configuration file. You must use a single logging statement to define all channels and
categories. If there are multiple logging statements in a configuration, the first defined statement
determines the logging configuration and warnings that are issued for the others.
Message Severity Levels
The severity levels include all the syslog severities as well as multiple debug levels. These levels
correspond to the different debugging levels in named (the BIND daemon) and are ranked so
that higher levels are less severe. If you configure a channel for debug level 3, then in addition
to level 3, it accepts and logs messages at levels 2 and 1.
The default channels are as follows:
• default_syslog
Sends messages to the daemon facility at severity info and higher (info is a predefined
severity level that logs messages of its severity level or higher to the channel).
• default_debug
Sends messages to the file named.run and tracks the daemon’s current dynamic debug
level.
• default_stderr
Sends messages of severity info and higher to standard error.
• null
Discards everything it receives.
Message Categories
You can assign a list of channels to each message category, and send messages to all the channels
from each message category.
Table 1-3 describes the different types of message categories.
28 Overview