OUTPUT (under LOG)
The OUTPUT
element specifies where the log messages are sent or
written.
Syntax
<OUTPUT Type={"DAILYFILE"|"CONSOLE"|"CONSOLE,DAILYFILE"}>[path]</OUTPUT>
- The
Type
attribute specifies whether log message are output to the console or written to a log file, or both. See Table 1. - path specifies the path to the log file.
If you do not set the path, the default path set by the resource
res.log.output.path
in the Genero Application Server configuration file (as.xcf) is used. You can access daily log files for a given dispatcher in the appdata/log/dispatcher_name/date directory, where appdata refers to GAS application data directory.
Type | Description |
---|---|
DAILYFILE |
Log files are written to disk. New log files are created daily and are stored in
a directory named by date in the format YYYYMMDD. If path is specified, the daily directory is created and stored under its log directory. If path is not specified, the log files are created in the default log directory.DVM logs are redirected to files when DAILYFILE is set for the log output type. |
CONSOLE |
Log messages are sent to standard output. |
Usage
You use this element to specify where log messages are displayed or written.
Output configuration examples
-
In this example, the daily log file is written to the default logging directory.<OUTPUT Type="DAILYFILE"/>
-
In this example, the daily directory is created in $(res.as.dir)/logdirs/log.<OUTPUT Type="DAILYFILE">$(res.as.dir)/logdirs</OUTPUT>
-
In this example, log messages are sent to standard output.<OUTPUT Type="CONSOLE"/>
-
In this example, log messages are both written to a log file in the default logging directory and sent to standard output.<OUTPUT Type="CONSOLE,DAILYFILE"/>
Parent elements
This element is a child of the LOG
element.