1 Commits
0.3.0 ... 0.3.1

Author SHA1 Message Date
f3dbac0896 Fix default prefix format. 2022-11-03 15:14:43 -05:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "0.3.0"
version = "0.3.1"
author = "Jonathan Bernard"
description = "Wrapper around std/logging to provide namespaced logging."
license = "MIT"

View File

@ -39,7 +39,7 @@ proc getLoggerForNamespace*(
if msgPrefix.isSome:
return initLoggingNamespace(namespace, level, msgPrefix.get)
else:
return initLoggingNamespace(namespace, level, namespace)
return initLoggingNamespace(namespace, level, namespace & ": ")
proc setLevelForNamespace*(namespace: string, lvl: Level, recursive = false) =
if recursive: