summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-02-06 22:05:10 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2015-02-06 22:05:10 +0000
commitd020ad097c7f1e8155c6b6e7bafbf7731caaafe8 (patch)
treea7e1a2a356094261520fece0aa6c09a3df8926e2
parent53f4c7758b0c9d3df562795eeca0a553eb22e219 (diff)
parent99b14c8d8d189987d0478263c50c7d2b0dc0e625 (diff)
downloadNim-d020ad097c7f1e8155c6b6e7bafbf7731caaafe8.tar.gz
Merge pull request #2081 from h3rald/patch-3
newRollingFileLogger - fmtStr is always set to defaultFmtStr
-rw-r--r--lib/pure/logging.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim
index bb1835ed7..de733b75c 100644
--- a/lib/pure/logging.nim
+++ b/lib/pure/logging.nim
@@ -186,7 +186,7 @@ proc newRollingFileLogger*(filename = defaultFilename(),
   ## a new log file will be started and the old will be renamed.
   new(result)
   result.levelThreshold = levelThreshold
-  result.fmtStr = defaultFmtStr
+  result.fmtStr = fmtStr
   result.maxLines = maxLines
   result.f = open(filename, mode)
   result.curLine = 0