mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2024-11-16 06:28:32 -06:00
use default from std/logging
This commit is contained in:
parent
7f638448b8
commit
07724c4d4a
1 changed files with 10 additions and 1 deletions
|
@ -33,7 +33,16 @@ type
|
|||
fmtStrs: array[Level, string]
|
||||
|
||||
|
||||
const defaultFlushThreshold = lvlAll
|
||||
const
|
||||
defaultFlushThreshold = when NimMajor >= 2:
|
||||
when defined(nimV1LogFlushBehavior): lvlError else: lvlAll
|
||||
else:
|
||||
when defined(nimFlushAllLogs): lvlAll else: lvlError
|
||||
## The threshold above which log messages to file-like loggers
|
||||
## are automatically flushed.
|
||||
##
|
||||
## By default, only error and fatal messages are logged,
|
||||
## but defining ``-d:nimFlushAllLogs`` will make all levels be flushed
|
||||
|
||||
proc genFmtStr(
|
||||
fmtPrefix, fmtSep, fmtSuffix, levelStyle: string,
|
||||
|
|
Loading…
Reference in a new issue