The Logging section is not required, but if it is included it must have the name [Logging]. Only one Logging section can be specified in the configuration file.
The Logging section specifies how much information is logged during processing and where it is logged to. It also allows the format of the logging output to be customized.
The table given below describes the keys available in the Logging section of the configuration file
Key |
Description |
---|---|
File name |
The name of the file to which information is logged. The default is gaserver.log. |
Level
|
Denotes the level of logging to report. Available levels are:
|
LogToScreen |
A yes/no value that specifies whether or not to write information to the command line. |
LogToFile |
A yes/no value specifying whether or not to write information to a log file. |
MaxSize |
The log file’s maximum byte size. Once this limit is reached, logging continues at the beginning of the file, overwriting important versioning information at the top of the file. During testing, set the MaxSize to the largest practical size, up to a maximum of 2Gb. The default is 10Mb. |
TimeStamp |
Specifies the format of the timestamp to use within the log file. The default format is '%X %x' (date representation for current locale followed by time representation for current locale). Possible values are: %a - abbreviated weekday name %A - full weekday name %b - abbreviated month name %B - full month name %c - date and time representation appropriate for locale %d - day of month as decimal number (01 – 31) %H - hour in 24-hour format (00 – 23) %I - hour in 12-hour format (01 – 12) %j - day of year as decimal number (001 – 366) %m - month as decimal number (01 – 12) %M - minute as decimal number (00 – 59) %p - current locale’s a.m./p.m. indicator for 12-hour clock %S - second as decimal number (00 – 59) %U - week of year as decimal number, with Sunday as first day of week (00 – 53) %w - weekday as decimal number (0 - 6; Sunday is 0) %W - week of year as decimal number, with Monday as first day of week (00 – 53) %x - date representation for current locale %X - time representation for current locale %y - year without century, as decimal number (00 – 99) %Y - year with century, as decimal number %z, %Z - time-zone name or abbreviation; no characters if time is unknown |
.