svcroute(5dce)Routing control file for DCE serviceability messages
Description The file consists of a series of text lines. Blank lines and lines that begin with a # (number sign) character are ignored when the file's contents are interpreted. All other lines must consist of either three or four fields, each separated by a : (colon). Leading white space is ignored. Lines consisting of three fields specify routing for nondebug serviceability messages. Their format is as follows: sev:out_form:dest[;out_form:dest . . . ] [GOESTO:{sev | comp}] The sev (severity) field specifies one of the following message severities:
FATAL
ERROR
WARNING
NOTICE
NOTICE_VERBOSE The out_form (output form) field specifies how the messages of a given severity level should be processed, and must be one of the following:
BINFILE
TEXTFILE
FILE
DISCARD
STDOUT
STDERR Files written as BINFILEs can be read and manipulated with a set of log file functions (for more information, see dce_svc_log_open(3dce) and dce_svc_log_get(3dce)), or by the svcdumplog command. The out_form specifier may be followed by a two-number specifier of the form &.gens.count where
gens
count The multiple files are named by appending a dot to the simple specified name, dest, followed by the current generation number. When the number of entries in a file reaches the maximum specified by count, the file is closed, the generation number is incremented, and the next file is opened. When the maximum generation number files have been created and filled, the generation number is reset to 1, and a new file with that number is created and written to (thus overwriting the already-existing file with the same name), and so on, as long as messages are being written. Thus the files wrap around to their beginning, and the total number of log files never exceeds gens, although messages continue to be written as long as the program continues writing them. Note that when a program starts, the generation starts at 1. The dest (destination) field specifies where the message should be sent, and is a path name. The field can be left blank if the out_form specified is DISCARD, STDOUT, or STDERR. The field can also contain a %ld string in the filename which, when the file is written, will be replaced by the process ID of the program that wrote the message(s). Filenames may not contain colons or periods. Multiple routings for the same severity level can be specified by simply adding the additional desired routings as semicolon-separated out_form:dest strings. For example, the following strings specify that · Fatal error messages should be sent to the console. · Warnings should be discarded. · Notices should be written both to standard error and as binary entries in files located in the /tmp directory. No more than 50 files should be written, and there should be no more than 100 messages written to each file. The files will have names of the form /tmp/logprocess_id.n, where process_id is the process ID of the program originating the messages, and n is the generation number of the file (expressed with only as many digits as needed). FATAL:TEXTFILE:/dev/console WARNING:DISCARD:-- NOTICE:STDERR:-;BINFILE.50.100:/tmp/log%ld The GOESTO specifier allows messages for the severity whose routing specification it appears in to be routed to the same destination (and in the same output form) as those for the other, specified, severity level (or component name).component (or message. For example, the following specification means that warning messages should show up in three places: twice to stderr, and then once to the file /tmp/foo: WARNING:STDERR:;GOESTO:FATAL FATAL:STDERR:;FILE:/tmp/foo Note that a GOESTO specification should be the last element in a multidestination route specification. More: Routing Serviceability Messages by Environment Variable Setting Serviceability Debug Message Levels Routing Serviceability Debug Messages
|