mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
Fixed template code with binding
This commit is contained in:
@@ -123,6 +123,9 @@ proc logLoop(level: TLevel, frmt: string, args: openarray[string]) =
|
||||
template log*(level: TLevel, frmt: string, args: openarray[string]) =
|
||||
## logs a message of the given level
|
||||
bind logLoop
|
||||
bind `%`
|
||||
bind logging.Level
|
||||
|
||||
if level >= logging.Level:
|
||||
logLoop(level, frmt, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user