Configuring Logging
About this task
To configure Journal Logging settings for the Analytic Engine instance
Procedure
- Navigate to the Logging configuration type and click Edit.
-
Define the loggers in the provided XML snippet.
The following table describes the appender parameters.
Parameter Description thresholdThreshold level for the target. Threshold levels indicate the level of information that is logged to the target. If you do not specify the threshold level of a journal logger, the logger inherits the assigned level from the root logger. The threshold levels listed in order of increasing importance are: - None, or off
- Trace
- Debug
- Info
- Warn
- Error
- Fatal
targetThe standard output for the logs. - System.Err
- System.Out
fileName of the file to which you want to log the data. The parameter is available for the TimeOrSize appender. datePatternDate/time characters that are appended to each log file name. - yyyy-mm-dd. Create a new log file at midnight.
- yyyy-mm-dd-hh:mm. Create a new log file every minute.
- yyyy-mm-dd-hh. Create a new file log every hour. hh uses a 24-hour clock.
- yyyy-mm-dd-{AM|PM}. Create log files at noon and midnight.
- yyyy-ww. Create a new log file each Sunday at midnight.
- yyyy-mm. Create a new log on the last day of each month at midnight.
syncOnQueueFull- true. Synchronize logs when the maxFileSize is reached.
- false. Do not synchronize logs when the maxFileSize is reached.
queueSizeThe maximum queue size. The parameter is available for the Async appender. maxLogLimitNumber of log files that are kept in the rollover destination. When the maximum number of log files is reached, the oldest log file is removed and a new one is allocated. The parameter is available for the TimeOrSize appender. maxFileSizeRestrict the amount of disk space (in megabytes) that is used for logging. The parameter is available for the TimeOrSize appender. typeDestination where you want to store the rolled over log files. The possible values are: - File
- Directory
hostNameThe default value is localhost. The parameter is available for the TimeOrSize appender when the value of the type parameter is Directory. logDirectoryName of the directory where the rolled over files are stored. Type . if you want the logs to be stored in the default directory. The parameter is available for the TimeOrSize appender when the value of the type parameter is Directory. dateFormatStringDate format that is used for the rolled over log files. The parameter is available for the TimeOrSize appender when the value of the type parameter is Directory. timeFormatStringTime format that is used for the rolled over log files. The parameter is available for the TimeOrSize appender when the value of the type parameter is Directory. Note: You can edit the default appender parameters, or add appenders to the xml. - Click Save.