Add substituteLog docs
This commit is contained in:
parent
6823a60b23
commit
08ec0ce071
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue