Setting 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. It is recommended that you do not disable logging.
ERROR - Logs the error messages only. For example, if you want that only error messages are logged, set
Log_Level=ERROR
.WARN - Logs the error messages and warnings. This is the default log level.
INFO - Logs the error messages, warnings, and informational messages. This level generates a very large number of entries and is usually reserved for debugging. For example, if you want that error messages, warnings, and informational messages are logged, set
Log_Level=INFO
.DEBUG - Logs the diagnostic information.
Note: To run your client application, you must have permission to write to the log file and to create new files in the directory where the log files are created.
Example:
Log_Level=MEDIUM
Log_File: Specify the name and path to the log file. The path can be absolute or relative to your application. Default value is
LogFile.txt
.Example:
Log_File=LogFile.txt
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_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
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.