Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
/ simplelog Public archive

A deadly simple log package supporting very simple colorful logging.

License

Notifications You must be signed in to change notification settings

sslime336/simplelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplelog

A deadly simple log package.

Perform differently in different build modes:

when not defined(release) and not defined(js):

debug

when defined(release): (without filename and number of line)

debug

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 timer

todo:

  • Log level
  • ...whatever(lazy I am)

About

A deadly simple log package supporting very simple colorful logging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages