LunaTheFoxgirl / jsonlog-go

jsonlog-go is a logging package for doing logs compatible with inter-application communication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonlog-go

jsonlog-go is a logging package for doing logs compatible with inter-application communication.

jsonlog-go logs are structured as follows:

{
  "unix": "(Unix timestamp)",
  "type": "(log type; info, warning, error or fatal)",
  "timestamp": "(RFC3339 timestamp)",
  "message": "(log message)"
}

There's aswell an optional data tag that can be any type, including nil.

About

jsonlog-go is a logging package for doing logs compatible with inter-application communication.

License:MIT License


Languages

Language:Go 100.0%