Fix default prefix format.
This commit is contained in:
parent
c0f818ef30
commit
f3dbac0896
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Wrapper around std/logging to provide namespaced logging."
|
description = "Wrapper around std/logging to provide namespaced logging."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -39,7 +39,7 @@ proc getLoggerForNamespace*(
|
|||||||
if msgPrefix.isSome:
|
if msgPrefix.isSome:
|
||||||
return initLoggingNamespace(namespace, level, msgPrefix.get)
|
return initLoggingNamespace(namespace, level, msgPrefix.get)
|
||||||
else:
|
else:
|
||||||
return initLoggingNamespace(namespace, level, namespace)
|
return initLoggingNamespace(namespace, level, namespace & ": ")
|
||||||
|
|
||||||
proc setLevelForNamespace*(namespace: string, lvl: Level, recursive = false) =
|
proc setLevelForNamespace*(namespace: string, lvl: Level, recursive = false) =
|
||||||
if recursive:
|
if recursive:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user