Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
0eb0d33573 |
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user