Compare commits

...

1 Commits
1.0.0 ... main

2 changed files with 3 additions and 3 deletions

@ -1,6 +1,6 @@
# Package # Package
version = "1.0.0" version = "1.0.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"

@ -14,7 +14,7 @@ type
LogServiceConfig* = object LogServiceConfig* = object
loggers*: seq[LoggerConfig] loggers*: seq[LoggerConfig]
appenders: seq[LogAppender] appenders*: seq[LogAppender]
rootLevel*: Level rootLevel*: Level
ThreadState = object ThreadState = object
@ -155,7 +155,7 @@ func formatJsonStructuredLog*(msg: LogMessage): string {.gcsafe.} = return $(%ms
func initConsoleLogAppender*( func initConsoleLogAppender*(
namespace = "", namespace = "",
threshold = lvlInfo, threshold = lvlAll,
formatter = formatJsonStructuredLog, formatter = formatJsonStructuredLog,
useStderr = false): ConsoleLogAppender {.gcsafe.} = useStderr = false): ConsoleLogAppender {.gcsafe.} =
result = ConsoleLogAppender( result = ConsoleLogAppender(