Repository

📝 treplo

Mostly port of logrus logger to V.

Install via git

git clone https://github.com/Terisback/treplo.git ~/.vmodules/terisback/treplo

✨ Example

import terisback.treplo

mut log := treplo.new()
log.with_field("animal","walrus")
   .info("A walrus appears")

INFO[0000] A walrus appears animal=walrus

🎣 Hooks

import terisback.treplo

mut log := treplo.new()
log.add_hook(MyHook{})
log.info("Some")

treplo_hooks

📰 Custom formatters

import terisback.treplo

mut log := treplo.new()
log.set_formatter(&MyFormatter{})
log.with_field("author", "Dungeon Master")
   .info("Deep Dark Fantasy")

treplo_dungeon_master

📚 Documentation

Examples

Feel free to contribute ;)
You can contact me at discord: TERISBACK#9125

About

0
66
1 year ago

Author

Terisback