GAS Configuration Reference / Configuration file elements |
The LOG element specifies details of the log files the Genero Application Server creates.
The GAS creates logs for each of its dispatchers, proxies, and DVMs. The LOG element and its child elements specify where the log files are created, the format of the log messages, the type of information logged, and the maximum size of a single log message.
It is possible to specify multiple LOG elements. For example, you may need to have separate log files capturing different categories of messages.
<LOG> <OUTPUT Type="{DAILYFILE|CONSOLE|CONSOLE,DAILYFILE}">[path/filename]</OUTPUT> <FORMAT [ Type="TEXT" ]>fields-id[...]</FORMAT> [<CATEGORIES_FILTER>filterName[...]</CATEGORIES_FILTER>] [ <RAW_DATA MaxLength="length" /> ] </LOG>
The LOG element may contain the following child elements:
<LOG> <OUTPUT Type="DAILYFILE">$(res.log.output.path)</OUTPUT> <FORMAT Type="TEXT">time event-type event-params</FORMAT> <CATEGORIES_FILTER>GAS ACCESS PROCESS DEPRECATED ERROR WARNING</CATEGORIES_FILTER> <RAW_DATA MaxLength="-1" /> </LOG>
To support more than one GAS process using the same log configuration, if a required log file cannot be opened, the GAS process ID will be added to the log file name.
This element is a child of the APPLICATION_SERVER element.