Log (message) output contents and output destination
You can specify the content to be output and the output destination of log (message) records by specifying the following fields in the System Environment Settings:
-
Trace Output Version (tlogver)
-
Log Size Reduction Mode (logreduction)
-
Output to Trace Logs (tracelog)
-
Output to System Logs (syslog)
-
Trace Output File Name (tlogfile)
In this section, the fields in the System Environment Settings, the parameters that you can specify upon starting a daemon, and the output destination of log records are explained in relation to each other.
For the System Environment Settings, refer to the following:
HULFT10 for Linux/AIX Administration Manual :
For the parameter specified upon starting a daemon, refer to the following:
HULFT10 for Linux/AIX Operation Manual :
Log (message) output content
Log (message) output content differs depending on the settings for Trace Output Version (tlogver) and Log Size Reduction Mode (logreduction).
For the output content, refer to Common header area.
Log Size Reduction Mode (logreduction) |
Description |
---|---|
0 |
Output all information |
1 |
Output only common header area |
Values set in the System Environment Settings and the output destination of log (message) records
The following explains the combination of the values that are specified in Output to Trace Logs (tracelog) and Output to System Logs (syslog) in the System Environment Settings to determine the output destination. These settings are the same when Trace Output Version (tlogver) is set to "84", "8", "7", or "6".
Output to Trace Logs (tracelog) (*1) |
Output to System Logs (syslog) (*1) |
Description |
---|---|---|
0 |
0 |
Log (message) records are not output |
0 |
1 |
Log (message) records are output to the syslog |
1 |
0 |
Log (message) records are output to the trace log |
1 |
1 |
Log (message) records are output to the trace log and syslog |
*1 |
: |
You can specify output settings for each message level. For details on the settings, refer to the following: HULFT10 for Linux/AIX Administration Manual : If you have specified whether to output the log records for a message number by using the Message Filter file, the settings that you specified in the Message Filter file override the settings specified in Output to Trace Logs (tracelog) and Output to System Logs (syslog). For details on the Message Filter file, refer to the following: HULFT10 for Linux/AIX Administration Manual : |
Output destination of log (message) records by parameter specified at the time of daemon startup
The output destination of the log (message) records changes according to the parameter that you specify when you start up a daemon.
When you specify a parameter to determine the output destination of log (message) records, it is necessary that the values for Output to Trace Logs (tracelog), Output to System Logs (syslog), and Trace Output File Name (tlogfile) have been set. For example, when you specify 'hulsndd -s' while the value for Output to System Logs (syslog) is set to '000,' an error occurs.
The output destinations of the log (message) records by parameter are shown below.
If Trace Output Version (tlogver) is "84", "8", or "7"
Daemon to Start |
Specified Parameter |
Output Destination of Log (Message) |
Output Destination of Message Log |
---|---|---|---|
Send daemon (hulsndd) Receive daemon (hulrcvd) |
None |
Trace Log, syslog |
Message log is not output |
-l file |
Trace log output destination file specified by the parameter |
||
-s |
syslog |
||
-l |
Trace log |
||
Observe daemon (hulobsd) |
None |
Trace log, syslog |
|
-l file |
Trace log output destination file specified by the parameter |
||
-s |
syslog |
If Trace Output Version (tlogver) is '6'
Daemon to Start |
Specified Parameter |
Output Destination of Log (Message) |
Output Destination of Message Log |
---|---|---|---|
Send daemon (hulsndd) Receive daemon (hulrcvd) |
None |
Trace log |
Message log is not output |
-l file |
Trace log output destination file specified by the parameter |
Trace log output destination file specified by the parameter |
|
-s |
Trace log |
syslog |
|
-l |
Console |
||
Observe daemon (hulobsd) |
None |
Trace log |
Message log is not output |
-l file |
Trace log output destination file specified by the parameter |
||
-s |
Trace log |
-
Message log is output regardless of the settings of Output to Trace Logs (tracelog) and Output to System Logs (syslog).
-
When the trace log is output to the syslog, priority is set to 'LOG_INFO.'
Setting Example
The example below shows how to output log (message) records by using start commands for each HULFT resident daemons.
Outputting all log (message) records to the trace log and syslog with V8.4 header
Trace Output Version (tlogver) |
: |
84 |
Output to Trace Logs (tracelog) |
: |
111 |
Output to System Logs (syslog) |
: |
111 |
Startup of daemon |
: |
Startup without argument |
hulsndd hulrcvd hulobsd
Log (message) records are output to the trace log and syslog with the V8.4 header.
Outputting log (message) records to the trace log only
Output to Trace Logs (tracelog) |
: |
111 |
Output to System Logs (syslog) |
: |
000 |
Startup of daemon |
: |
Specify file name by argument -l |
hulsndd -l /usr/local/log/hullog_snd hulrcvd -l /usr/local/log/hullog_rcv hulobsd -l /usr/local/log/hullog_obs
Log (message) records are output to each file specified with '-l.'
Outputting log (message) records to the syslog only
Output to Trace Logs (tracelog) |
: |
000 |
Output to System Logs (syslog) |
: |
111 |
Startup of daemon |
: |
Startup with argument -s |
hulsndd -s hulrcvd -s hulobsd -s
Log (message) records are output to the syslog.
Outputting only common header area to the file specified by the Trace Output File Name
Output to Trace Logs (tracelog) |
: |
111 |
Log Size Reduction Mode (logreduction) |
: |
1 |
Trace Output File Name (tlogfile) |
: |
/usr/local/log/tlogfile |
Startup of daemon |
: |
Startup without argument |
hulsndd hulrcvd hulobsd
Only common header area of log (message) records will be output to the file '/usr/local/log/tlogfile,' specified for Trace Output File Name (tlogfile).
When you do not output log (message) records
Output to Trace Logs (tracelog) |
: |
000 |
Output to System Logs (syslog) |
: |
000 |
Trace Output File Name (tlogfile) |
: |
Optional |
Startup of daemon |
: |
Startup without argument |
hulsndd hulrcvd hulobsd
Log (message) records will not be output even if Trace Output File Name (tlogfile) is specified.