Fixed template code with binding
This commit is contained in:
parent
bc519fdd51
commit
c6fa27e814
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue