Controlling Error Logs by Using the SYSLOG Command
Use the SYSLOG command and its various parameters to access the SYSLOG utility.
If you do not specify parameters when you use the command, the system loads
the active system error log and displays the SYSLOG Summary window (see
Working with the Error Log and
Controlling Error Logging). If the system cannot find the file name
you requested, SYSLOG displays a message.
If logging is not active, an error message will be shown stating
"The OS/2 Logging Facility device driver LOG$ is not
loaded. To activate logging enter DEVICE=\OS2\LOG.SYS
and RUN=\OS2\SYSTEM\LOGDAEM.EXE in config.sys and reboot.
The available parameters of the SYSLOG command are as follows:
/V:<error
log pathname>
Use this parameter with the error
log pathname to access the error log. If you specify no pathname, the system
accesses the active error log.
/S:<error log
pathname>
Use this parameter to suspend error
logging. Note that when you use this parameter, the system writes an error
log entry to the current active error log that indicates that you suspended
logging.
/R:<error log pathname>
Use
this parameter to resume error logging to the suspended file. If
the system cannot find the pathname, the system does not resume logging.
If the system finds the pathname but cannot find the error log file, the
system creates the error log file and resumes logging. Note that when you
use this parameter the system writes an error log entry to the current active
error log that indicates that you resumed logging.
/P:<error
log pathname>
Use this parameter to redirect
error logging to another error log. Note that when you use this parameter
the system writes an error log entry to the current active error log that
indicates you redirected logging. The error log entry contains the pathname
of the error log file that logging was directed from and the pathname of
the error log file that logging was directed to.
/W:xx
Use this parameter along with the /P parameter
and the error log pathname to change the maximum size (xx) of the
specified error log. The default size of the error log is 64 KB.
[Back: What is a Control Record?]
[Next: Viewing Error Log Contents by Using SYSLOG]