Update for namespaced_logging v0.3+
This commit is contained in:
parent
8f0ce0900e
commit
3f9eb80713
@ -1,6 +1,6 @@
|
|||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
author = "Jonathan Bernard"
|
author = "Jonathan Bernard"
|
||||||
description = "Utilities and bindings for HFF's Notion API."
|
description = "Utilities and bindings for HFF's Notion API."
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
@ -11,4 +11,4 @@ srcDir = "src"
|
|||||||
requires "nim >= 1.4.8"
|
requires "nim >= 1.4.8"
|
||||||
requires "https://git.jdb-software.com/jdb/buffoonery"
|
requires "https://git.jdb-software.com/jdb/buffoonery"
|
||||||
requires "https://git.jdb-software.com/jdb/nim-time-utils.git >= 0.5.0"
|
requires "https://git.jdb-software.com/jdb/nim-time-utils.git >= 0.5.0"
|
||||||
requires "https://git.jdb-software.com/jdb/nim-namespaced-logging"
|
requires "https://git.jdb-software.com/jdb/nim-namespaced-logging.git >= 0.3.1"
|
||||||
|
@ -8,7 +8,7 @@ const NOTION_DATE_FORMAT = "YYYY-MM-dd"
|
|||||||
var logNs {.threadvar.}: LoggingNamespace
|
var logNs {.threadvar.}: LoggingNamespace
|
||||||
|
|
||||||
template log(): untyped =
|
template log(): untyped =
|
||||||
if logNs.isNil: logNs = initLoggingNamespace("hff_notion_api_client/utils", lvlInfo)
|
if logNs.isNil: logNs = getLoggerForNamespace("hff_notion_api_client/utils", lvlInfo)
|
||||||
logNs
|
logNs
|
||||||
|
|
||||||
proc parseDate(str: string): DateTime =
|
proc parseDate(str: string): DateTime =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user