A logging library with standard output with JSON format written in Go.
You can print info log by doing:
journal.Info("Starting application at port: 8080").Log()
You can use any other log level like warning or error:
journal.Error("Failed to unmarshal JSON.", err).Log()
journal.Warning("Cannot connect to MYSQL").Log()
Set tags for your log:
journal.Info("Starting application at port: 8080").
SetTags("server", "boot").
Log()
or add custom field:
journal.Info("Starting application at port: 8080").
SetTags("server", "boot").
AddField("env", "production")
Log()