8.89 LOG (Direct logger output)

8.89.1 Function

The LOG command lets you redirect the log output to another destination.

8.89.2 Syntax

Descriptive

[ newfile

Diagram

¬§¬¬¬
newfile ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



OFF

8.89.3 Parameter

newfile

The file name and optionally the path to which the log output has to be written to.

OFF

Stops the output going to the logfile.

8.89.4 Examples

Example 1:

Redirect the log output to a new logfile destination.

HHC00013I Herc command: 'log d:/mvs/log/newlog.txt'

Figure 171: LOG command (redirect output to a new logfile)

Example 2:

Stop the output going to the logfile.

HHC00013I Herc command: 'log off'

HHC02101I Logger: log closed

Figure 172: LOG command (stop output to logfile)

8.90 LOGOPT (Display or set logging options)

8.90.1 Function

The LOGOPT command lets you display or change the logging options. "TIMESTAMP" inserts a time
stamp in front of each log message, whereas "NOTIMESTAMP" displays log messages with no time
stamps. Entering the command without any argument displays the current logging options.

8.90.2 Syntax

Descriptive

Diagram

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ













8.90.3 Parameter

TIMESTAMP

Insert a time stamp in front of each log message. This is the same as using TIME.

TIME

Insert a time stamp in front of each log message. This is the same as using TIME-
STAMP.

NOTIMESTAMP

Display log messages without a timestamp. This is the same as using NOTIME.

NOTIME

Display log messages without a timestamp. This is the same as using NOTIME-
STAMP.

8.90.4 Examples

Example 1:

Display log messages without a timestamp in front of each message.

HHC00013I Herc command: 'logopt notimestamp'

HHC02204I logopts set to NOTIMESTAMP

Figure 173: LOGOPT command

Previous Page Next Page