package logx
is a minimal log package inspired by logrus and zap that follows these Dave Cheney guidelines.
Features:
- pluggable io.Writer with the
WithWriter
decorator, default is os.Stdout - 2 marshallers available, a logstash one and a human-readable one
- support debug and info levels, and a
WithLevel
decorator to change the level - support structured fields, for now keys are strings and values can be string (
logx.S
) and interger (logx.I
) - provides a Dummy logger for testing purposes
Things not implemented yet:
- colors