diff --git a/chronicles/helpers.nim b/chronicles/helpers.nim index 5d117a3..d8c0048 100644 --- a/chronicles/helpers.nim +++ b/chronicles/helpers.nim @@ -33,7 +33,7 @@ func parseTopicDirectives*(directives: openArray[string]): Table[string, TopicSe forEachTopic: topic.logLevel = DEBUG of "inf", "info": forEachTopic: topic.logLevel = INFO - of "not", "notice": + of "ntc", "notice", #[legacy compatibility:]# "not": forEachTopic: topic.logLevel = NOTICE of "wrn", "warn": forEachTopic: topic.logLevel = WARN @@ -43,4 +43,3 @@ func parseTopicDirectives*(directives: openArray[string]): Table[string, TopicSe forEachTopic: topic.logLevel = FATAL else: raise newException(ValueError, &"'{parts[0]}' is not a recognized log level.") - diff --git a/chronicles/log_output.nim b/chronicles/log_output.nim index 2e1d948..06a8d6c 100644 --- a/chronicles/log_output.nim +++ b/chronicles/log_output.nim @@ -480,7 +480,7 @@ template shortName(lvl: LogLevel): string = of TRACE: "TRC" of DEBUG: "DBG" of INFO: "INF" - of NOTICE:"NOT" + of NOTICE:"NTC" # Legacy: "NOT" of WARN: "WRN" of ERROR: "ERR" of FATAL: "FAT"