📝 treplo
Mostly port of
logrus
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")
🎣 Hooks
import terisback.treplo
mut log := treplo.new()
log.add_hook(MyHook{})
log.info("Some")
📰 Custom formatters
import terisback.treplo
mut log := treplo.new()
log.set_formatter(&MyFormatter{})
log.with_field("author", "Dungeon Master")
.info("Deep Dark Fantasy")
📚 Documentation
Examples
Feel free to contribute ;)
You can contact me at discord: TERISBACK#9125