2 Commits
0.4.2 ... 0.4.4

Author SHA1 Message Date
3f9eb80713 Update for namespaced_logging v0.3+ 2023-01-28 18:11:01 -06:00
8f0ce0900e Fix nimble configuration. 2022-04-20 14:00:24 -05:00
2 changed files with 3 additions and 4 deletions

View File

@ -1,15 +1,14 @@
# Package
version = "0.4.2"
version = "0.4.4"
author = "Jonathan Bernard"
description = "Utilities and bindings for HFF's Notion API."
license = "GPL-3.0-or-later"
srcDir = "src"
# Dependencies
requires "nim >= 1.4.8"
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-namespaced-logging"
requires "https://git.jdb-software.com/jdb/nim-namespaced-logging.git >= 0.3.1"

View File

@ -8,7 +8,7 @@ const NOTION_DATE_FORMAT = "YYYY-MM-dd"
var logNs {.threadvar.}: LoggingNamespace
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
proc parseDate(str: string): DateTime =