Merge pull request #2697 from lyro/devel

logging: make fmtStr public to be used in user defined loggers
This commit is contained in:
Dominik Picheta 2015-05-26 16:10:30 +01:00
commit d03b5891c1

View file

@ -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