diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2015-10-09 23:26:22 +0100 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2015-10-09 23:26:22 +0100 |
commit | 08ec0ce071fc604f56f29b4fbfb226457345505b (patch) | |
tree | 488391b8d2588de03528b6bc0d79d7361de4f6e2 | |
parent | 6823a60b235b5a4559ba4648d73221c339b2ce7d (diff) | |
download | Nim-08ec0ce071fc604f56f29b4fbfb226457345505b.tar.gz |
Add substituteLog docs
-rw-r--r-- | lib/pure/logging.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim index 4e7f83a9b..c6c794535 100644 --- a/lib/pure/logging.nim +++ b/lib/pure/logging.nim @@ -93,6 +93,8 @@ type PFileLogger: FileLogger, PRollingFileLogger: RollingFileLogger].} proc substituteLog*(frmt: string, level: Level, args: varargs[string, `$`]): string = + ## Format a log message using the ``frmt`` format string, ``level`` and varargs. + ## See the module documentation for the format string syntax. var msgLen = 0 for arg in args: msgLen += arg.len |