Set Logging Parameters
You can set the logging using following properties:
Log_Level
: Set the level of logging that will be performed by the client.Valid values: (values are not case-sensitive)
NONE- Disables client logging.
ERROR- Only error messages are logged.
WARN- Logs error messages and warnings. This is the default value.
INFO- Logs error messages, warnings, and informational messages.
DEBUG- Logs the diagnostic information.
Caution
The old log levels (LOW, MEDIUM, HIGH) are now deprecated. If any of these log levels are used, they will be automatically set to WARN (new default log level) and the logs will contain a warning message informing users to change the log levels.
Example:
<Log_Level>WARN</Log_Level>
Log_File
: Specify the name and path to the log file. The path can be absolute or relative to your application. Default value isLogFile.txt
.Example:
<Log_File>LogFile.txt</Log_File>
Log_Rotation
: Specify how frequently the log file will be rotated.
Valid values:
• Daily- Rotates the log file daily. This is the default value.
• Size- Rotates the log file when it reaches the size specified in theLog_Size_Limit
parameter.Example:
<Log_Rotation>Daily</Log_Rotation>
Log_Size_Limit
: Specify how large the log file can be before it is rotated. This value is only used when<Log_Rotation>Size</Log_Rotation>
is set. The default unit is bytes. You can use the suffix k (or K) for kilobytes and m (or M) for megabytes. Default value is 100k.Example:
<Log_Size_Limit>100k</Log_Size_Limit>
Note
The user running the client application must have permission to write to the log file and to create new files in the directory where the log files are created.