2020-09-18 16:12:53 -04:00
|
|
|
#
|
|
|
|
# See http://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.setup.filter_formatter
|
|
|
|
#
|
|
|
|
# Many of the property values have to be in quotes, best to just use quotes for all of them.
|
|
|
|
#
|
|
|
|
# SYSLOG is the System Log File for logging standard 'debug' type info.
|
|
|
|
# DATALOG is the Data log File for logging modification to business data.
|
|
|
|
#
|
|
|
|
[Core]
|
|
|
|
# Set DisableLogging to true to disable all logging.
|
|
|
|
DisableLogging="false"
|
|
|
|
|
|
|
|
# SYSLOG - system log
|
|
|
|
[Sinks.SYSLOG]
|
|
|
|
Destination="TextFile"
|
|
|
|
# If Asynchronous true then thread dedicated to writing to log, otherwise blocks main thread to write.
|
|
|
|
Asynchronous="true"
|
|
|
|
# If AutoFlush is true then non-buffered output
|
2020-09-26 10:13:52 -04:00
|
|
|
AutoFlush="false"
|
2020-09-18 16:12:53 -04:00
|
|
|
# Line Formats available: TimeStamp, Uptime, Severity, LineID (counter), ProcessID, ThreadID, Line, File, Function
|
|
|
|
# TimeStamp and Uptime support boost date time format:
|
|
|
|
# http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/date_time_io.html#date_time.format_flags
|
2020-11-26 07:33:02 -05:00
|
|
|
Format="[%TimeStamp(format=\"%Y-%m-%d %H:%M:%S.%f\")%][%Uptime(format=\"%O:%M:%S.%f\")%][%Channel%][%Severity%] %File%(%Line%) %Function%: %Message%"
|
2020-09-18 16:12:53 -04:00
|
|
|
# Target directory in which rotated files will be stored.
|
2020-11-26 07:33:02 -05:00
|
|
|
Target="${AppLocalDataLocation}/logs"
|
2020-09-18 16:12:53 -04:00
|
|
|
# FileName pattern to use. %N is a counter for files.
|
|
|
|
FileName="${AppLocalDataLocation}/wsjtx_syslog.log"
|
2020-11-26 07:33:02 -05:00
|
|
|
TargetFileName="${AppLocalDataLocation}/old_logs/wsjtx_syslog_%Y-%m_%2N.log"
|
2020-09-18 16:12:53 -04:00
|
|
|
# RotationSize in bytes, File size, in bytes, upon which file rotation will be performed.
|
|
|
|
# Time based rotation also available via RotationInterval and RotationTimePoint see boost log docs.
|
2020-11-26 07:33:02 -05:00
|
|
|
RotationSize="5242880" # 5 Mbyte
|
2020-09-24 19:44:56 -04:00
|
|
|
# If Append is true then do not start a new log file for each session
|
2020-09-26 10:13:52 -04:00
|
|
|
Append="true"
|
2020-09-24 19:44:56 -04:00
|
|
|
# EnableFinalRotation will rotate on close, make this false if using Append true
|
2020-09-26 10:13:52 -04:00
|
|
|
EnableFinalRotation="false"
|
2020-09-18 16:12:53 -04:00
|
|
|
# Matching used so that only files matching FileName pattern are deleted.
|
|
|
|
ScanForFiles="Matching"
|
|
|
|
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
2020-11-26 07:33:02 -05:00
|
|
|
MaxSize="1073741824" # 1 Gbyte total
|
2020-09-18 16:12:53 -04:00
|
|
|
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
2020-11-26 07:33:02 -05:00
|
|
|
MinFreeSpace="42949672960" # 40 Gbyte
|
|
|
|
MaxFiles="50"
|
2020-09-18 16:12:53 -04:00
|
|
|
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
|
|
|
# Since Channel not part of filter all log output will be included.
|
|
|
|
# If only SYSLOG logging desired, change to: Filter="%Severity% >= trace & %Channel% matches \"SYSLOG\""
|
|
|
|
Filter="%Severity% >= warning"
|
|
|
|
|
|
|
|
# DATALOG - data log
|
|
|
|
[Sinks.DATALOG]
|
|
|
|
Destination="TextFile"
|
|
|
|
# If Asynchronous true then thread dedicated to writing to log, otherwise blocks main thread to write.
|
|
|
|
Asynchronous="true"
|
|
|
|
# If AutoFlush is true then non-buffered output
|
2020-09-24 19:44:56 -04:00
|
|
|
AutoFlush="false"
|
2020-09-18 16:12:53 -04:00
|
|
|
Append="true"
|
|
|
|
# Line Formats available: TimeStamp, Uptime, Severity, LineID (counter), ProcessID, ThreadID
|
|
|
|
# TimeStamp and Uptime support boost date time format:
|
|
|
|
# http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/date_time_io.html#date_time.format_flags
|
|
|
|
Format="[%TimeStamp(format=\"%Y-%m-%d %H:%M:%S.%f\")%][%Uptime(format=\"%O:%M:%S.%f\")%][%Severity%] %Message%"
|
|
|
|
# Target directory in which rotated files will be stored.
|
2020-11-26 07:33:02 -05:00
|
|
|
Target="${AppLocalDataLocation}/logs"
|
2020-09-18 16:12:53 -04:00
|
|
|
# FileName pattern to use. %N is a counter for files.
|
|
|
|
FileName="${AppLocalDataLocation}/wsjtx_datalog.log"
|
|
|
|
TargetFileName="wsjtx_datalog_%5N.log"
|
|
|
|
# RotationSize in bytes, File size, in bytes, upon which file rotation will be performed.
|
|
|
|
# Time based rotation also available via RotationInterval and RotationTimePoint see boost log docs.
|
2020-11-26 07:33:02 -05:00
|
|
|
RotationSize="5242880"
|
2020-09-18 16:12:53 -04:00
|
|
|
EnableFinalRotation="false"
|
|
|
|
# Matching used so that only files matching FileName pattern are deleted.
|
|
|
|
ScanForFiles="Matching"
|
|
|
|
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
2020-11-26 07:33:02 -05:00
|
|
|
MaxSize="1073741824"
|
2020-09-18 16:12:53 -04:00
|
|
|
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
2020-11-26 07:33:02 -05:00
|
|
|
MinFreeSpace="42949672960"
|
2020-09-18 16:12:53 -04:00
|
|
|
MaxFiles="10"
|
|
|
|
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
|
|
|
# Specify Channel otherwise all log output will be included.
|
|
|
|
Filter="%Severity% >= info & %Channel% matches \"DATALOG\""
|
|
|
|
|
|
|
|
# Console log, logs both DATALOG and SYSLOG
|
|
|
|
[Sinks.Console]
|
|
|
|
# Remove the following lines to disable console logging
|
|
|
|
Destination="Console"
|
|
|
|
# If AutoFlush is true then non-buffered output
|
|
|
|
AutoFlush="true"
|
|
|
|
# Line Formats available: TimeStamp, Uptime, Severity, LineID (counter), ProcessID, ThreadID
|
|
|
|
# TimeStamp and Uptime support boost date time format:
|
|
|
|
# http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/date_time_io.html#date_time.format_flags
|
|
|
|
Format="[%TimeStamp(format=\"%Y-%m-%d %H:%M:%S.%f\")%][%Uptime(format=\"%O:%M:%S.%f\")%][%Severity%] - %Message%"
|
|
|
|
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
2020-09-26 10:13:52 -04:00
|
|
|
Filter="%Severity% >= trace"
|