mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 06:23:25 +00:00
fixed log*(logger: RollingFileLogger, level: Level,
frmt: string, args: varargs[string, ])
This commit is contained in:
@@ -217,7 +217,7 @@ method log*(logger: RollingFileLogger, level: Level,
|
||||
logger.curLine = 0
|
||||
logger.f = open(logger.baseName, logger.baseMode)
|
||||
|
||||
writeln(logger.f, LevelNames[level], " ", frmt % args)
|
||||
writeln(logger.f, LevelNames[level], " ",substituteLog(logger.fmtStr), frmt % args)
|
||||
logger.curLine.inc
|
||||
|
||||
# --------
|
||||
|
||||
Reference in New Issue
Block a user