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 the path value is not specified,
the default of $FGLASDIR/log is used.Note: The default Genero Application Server configuration file (as.xcf) provides a value for the
OUTPUT
element, specifying a directory other than $FGLASDIR/log. This directory can vary depending on the operating system. Check the configuration file to identify the directory specified for your installation.
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.