mirror of
https://github.com/sslime336/simplelog
synced 2026-01-15 05:41:37 +00:00
No description
| imgs | ||
| src | ||
| LICENSE | ||
| readme.md | ||
| simplelog.nimble | ||
simplelog
A deadly simple log package.
Perform differently in different build modes:
when not defined(release) and not defined(js):
when defined(release): (without filename and number of line)
Choose your own timer:
# demo.nim
import std / times
import simplelog
simplelog.timer =
proc(): string =
$now().utc
when isMainModule:
debug("different timer")
nim c -r demo.nim
output:
2023-06-02T08:02:33Z [DEBUG] E:\projects\simplelog\demo.nim:12 different timertodo:
- Log level
- ...whatever(lazy I am)

