logging: make fmtStr public to be used in user defined loggers
This commit is contained in:
parent
0b184f2584
commit
749e808e1e
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ type
|
||||||
Logger* = ref object of RootObj ## abstract logger; the base type of all loggers
|
Logger* = ref object of RootObj ## abstract logger; the base type of all loggers
|
||||||
levelThreshold*: Level ## only messages of level >= levelThreshold
|
levelThreshold*: Level ## only messages of level >= levelThreshold
|
||||||
## should be processed
|
## should be processed
|
||||||
fmtStr: string ## = defaultFmtStr by default, see substituteLog for $date etc.
|
fmtStr*: string ## = defaultFmtStr by default, see substituteLog for $date etc.
|
||||||
|
|
||||||
ConsoleLogger* = ref object of Logger ## logger that writes the messages to the
|
ConsoleLogger* = ref object of Logger ## logger that writes the messages to the
|
||||||
## console
|
## console
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue