Export substituteLog
Allow Nim users to create their own loggers
This commit is contained in:
parent
fec0894d59
commit
6823a60b23
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ type
|
|||
{.deprecated: [TLevel: Level, PLogger: Logger, PConsoleLogger: ConsoleLogger,
|
||||
PFileLogger: FileLogger, PRollingFileLogger: RollingFileLogger].}
|
||||
|
||||
proc substituteLog(frmt: string, level: Level, args: varargs[string, `$`]): string =
|
||||
proc substituteLog*(frmt: string, level: Level, args: varargs[string, `$`]): string =
|
||||
var msgLen = 0
|
||||
for arg in args:
|
||||
msgLen += arg.len
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue