ACC Utilities Reference Guide

ZMLOG - Diagnostic Message Logging
ZCOM Diagnostic Message Logging Mechanism
Chapter 6 155
/etc/zmlog -t -nb -p 0 -z /dev/zmlog -m /opt/acc/msg/default.msg \
-l /var/opt/acc/log -d /dev/console
The run string (including options) for ZMLOG is:
Usage: zmlog [options] [-p pri] [-z zfile] [-m mfile] [-B bmax]
[-T tmax] [-l lpath] [-d dev] ...
Options:
t,b enable text or binary logging
nt,nb,nd disable text or binary or device logging
nf do not fork (run in foreground)
x hex dump each message log (for zmlog debugging)
Parameters:
pri minimum message priority to be logged
zfile specify ZCOM log device file
mfile specify message text file
bmax specify max size of one binary log file
tmax specify max size of one text log file
lpath specify text and binary directory
dev specify log device (up to 4 devices)
The options select the types of logging to be done:
-b Enable binary logging to log files day.blog - do not use
option -nb with this option.
-t Enable text logging to log files day.tlog - do not use
option -nt with this option.
-nb Disable binary logging to files - do not use option -b
with this option.
-nt Disable text logging to files - do not use option -t
with this option.
-nf No fork. Normally ZMLOG forks a child and runs in
the background. This option disables it. Used by
zmasterd.
-x Enable the debug hex dump in the program. This
should only be used for debugging the zmlog program.
The other optional parameters are as follows:
-p <pri> Specify the minimum message priority level to log. The
messages with priorities greater than or equal to <pri>
are logged. Those less than <pri> are ignored. The