- Hide initLoggingNamespace. getLoggerForNamespace should be used instead. - setLevelForNamespace now calls getLoggerForNamespace to ensure the namespace exists when a caller tries to set the logging level. Previously it was possible to call setLevelForNamespace before the namespace was initialized, meaning that the setting had no effect. This is especially problematic for cases where a library is using namespaced logging with the filter set to a high level by default. The code using that library may want to enable debug logs, and is likely to call setLevelForNamespace in initialization code that runs prior to the library code which instantiates the namespace.
13 lines
232 B
Nim
13 lines
232 B
Nim
# Package
|
|
|
|
version = "0.3.0"
|
|
author = "Jonathan Bernard"
|
|
description = "Wrapper around std/logging to provide namespaced logging."
|
|
license = "MIT"
|
|
srcDir = "src"
|
|
|
|
|
|
# Dependencies
|
|
|
|
requires "nim >= 1.0.4"
|