mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 11:31:51 -05:00
Updated example logging configuration example.
This commit is contained in:
parent
b9a6cb8670
commit
56f16cc023
@ -20,15 +20,15 @@ AutoFlush="false"
|
|||||||
# Line Formats available: TimeStamp, Uptime, Severity, LineID (counter), ProcessID, ThreadID, Line, File, Function
|
# Line Formats available: TimeStamp, Uptime, Severity, LineID (counter), ProcessID, ThreadID, Line, File, Function
|
||||||
# TimeStamp and Uptime support boost date time format:
|
# 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
|
# 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%] %File%(%Line%) %Function%: %Message%"
|
Format="[%TimeStamp(format=\"%Y-%m-%d %H:%M:%S.%f\")%][%Uptime(format=\"%O:%M:%S.%f\")%][%Channel%][%Severity%] %File%(%Line%) %Function%: %Message%"
|
||||||
# Target directory in which rotated files will be stored.
|
# Target directory in which rotated files will be stored.
|
||||||
Target="${AppLocalDataLocation}/old_logs"
|
Target="${AppLocalDataLocation}/logs"
|
||||||
# FileName pattern to use. %N is a counter for files.
|
# FileName pattern to use. %N is a counter for files.
|
||||||
FileName="${AppLocalDataLocation}/wsjtx_syslog.log"
|
FileName="${AppLocalDataLocation}/wsjtx_syslog.log"
|
||||||
TargetFileName="${AppLocalDataLocation}/old_logs/wsjtx_syslog_%Y-%m-%d_%H-%M-%S.%N.log"
|
TargetFileName="${AppLocalDataLocation}/old_logs/wsjtx_syslog_%Y-%m_%2N.log"
|
||||||
# RotationSize in bytes, File size, in bytes, upon which file rotation will be performed.
|
# 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.
|
# Time based rotation also available via RotationInterval and RotationTimePoint see boost log docs.
|
||||||
RotationSize="1048576"
|
RotationSize="5242880" # 5 Mbyte
|
||||||
# If Append is true then do not start a new log file for each session
|
# If Append is true then do not start a new log file for each session
|
||||||
Append="true"
|
Append="true"
|
||||||
# EnableFinalRotation will rotate on close, make this false if using Append true
|
# EnableFinalRotation will rotate on close, make this false if using Append true
|
||||||
@ -36,10 +36,10 @@ EnableFinalRotation="false"
|
|||||||
# Matching used so that only files matching FileName pattern are deleted.
|
# Matching used so that only files matching FileName pattern are deleted.
|
||||||
ScanForFiles="Matching"
|
ScanForFiles="Matching"
|
||||||
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
||||||
#MaxSize=100485760
|
MaxSize="1073741824" # 1 Gbyte total
|
||||||
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
||||||
#MinFreeSpace=1485760
|
MinFreeSpace="42949672960" # 40 Gbyte
|
||||||
MaxFiles="10"
|
MaxFiles="50"
|
||||||
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
||||||
# Since Channel not part of filter all log output will be included.
|
# 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\""
|
# If only SYSLOG logging desired, change to: Filter="%Severity% >= trace & %Channel% matches \"SYSLOG\""
|
||||||
@ -58,20 +58,20 @@ Append="true"
|
|||||||
# http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/date_time_io.html#date_time.format_flags
|
# 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%"
|
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.
|
# Target directory in which rotated files will be stored.
|
||||||
Target="${AppLocalDataLocation}/old_logs"
|
Target="${AppLocalDataLocation}/logs"
|
||||||
# FileName pattern to use. %N is a counter for files.
|
# FileName pattern to use. %N is a counter for files.
|
||||||
FileName="${AppLocalDataLocation}/wsjtx_datalog.log"
|
FileName="${AppLocalDataLocation}/wsjtx_datalog.log"
|
||||||
TargetFileName="wsjtx_datalog_%5N.log"
|
TargetFileName="wsjtx_datalog_%5N.log"
|
||||||
# RotationSize in bytes, File size, in bytes, upon which file rotation will be performed.
|
# 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.
|
# Time based rotation also available via RotationInterval and RotationTimePoint see boost log docs.
|
||||||
RotationSize="1048576"
|
RotationSize="5242880"
|
||||||
EnableFinalRotation="false"
|
EnableFinalRotation="false"
|
||||||
# Matching used so that only files matching FileName pattern are deleted.
|
# Matching used so that only files matching FileName pattern are deleted.
|
||||||
ScanForFiles="Matching"
|
ScanForFiles="Matching"
|
||||||
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
# MaxSize - Total size of files in the target directory in bytes upon which the oldest file will be deleted.
|
||||||
#MaxSize=100485760
|
MaxSize="1073741824"
|
||||||
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
# MinFreeSpace - Minimum free space in the Target directory in bytes. Above this value oldest file is deleted.
|
||||||
#MinFreeSpace=1485760
|
MinFreeSpace="42949672960"
|
||||||
MaxFiles="10"
|
MaxFiles="10"
|
||||||
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
# Specify level of log, options are: trace, debug, info, warning, error, fatal
|
||||||
# Specify Channel otherwise all log output will be included.
|
# Specify Channel otherwise all log output will be included.
|
||||||
|
Loading…
Reference in New Issue
Block a user