1.7
Common configuration file parameters
5
1.7.2
Logging configuration
1.7.2.1
Level
Optional.
•
Name:
log.level = [error
|
warning
|
info
|
debug]
•
Description:
Logging level.
•
Default:
info
•
Example:
log.level = debug
1.7.2.2
File path
Optional.
•
Name:
log.file_path = [path to a file]
•
Description:
Absolute or relative (to the current directory) path to a logging file. Logging is disabled if logging
file is not defined. File should be writable. Backslash should be escaped with a backslash.
•
Example:
log.file = /var/opt/ugcs/log/vsm-ardupilot/vsm-ardupilot.log
•
Example:
log.file = C:\\Users\\John\\AppData\\Local\\UGCS\\logs\\vsm-ardupilot\\vsm-ardupilot.log
1.7.2.3
Maximum single file size
Optional.
•
Name:
log.single_max_size = [size]
•
Description:
Maximum size of a single log file. When maximum size is exceeded, existing file is renamed
by adding a time stamp and logging is continued into the empty file. [size] should be defined as a number
postfixed by a case insensitive multiplier:
–
Gb, G, Gbyte, Gbytes: for Giga-bytes
–
Mb, M, Mbyte, Mbytes: for Mega-bytes
–
Kb, K, Kbyte, Kbytes: for Kilo-bytes
–
no postfix: for bytes
•
Default:
100 Mb
•
Example:
log.single_max_size = 500 Mb
1.7.2.4
Maximum number of old log files
Optional.
•
Name:
log.max_file_count = [number]
•
Description:
Log rotation feature. Maximum number of old log files to keep. After reaching single_max_size
of current log file VSM will rename it with current time in extension and start new one. VSM will delete older
logs so the number of old logs does not exceed the max_file_count.
•
Default:
1
•
Example:
log.max_file_count = 5
Copyright © 2017, SPH Engineering