Categorygithub.com/savsgio/go-logger

# README

go-logger

Test status Coverage Status Go Report Card GoDev GitHub release

Fast, lightweight, customizable and structured logger for Go.

Install

go get github.com/savsgio/go-logger/v4

Supported Go versions:

  • 1.22.x
  • 1.21.x,
  • 1.20.x
  • 1.19.x
  • 1.18.x
  • 1.17.x

Levels:

LevelCode (constant)Value (str)
Printlogger.PRINT
Paniclogger.PANICpanic / PANIC
Fatallogger.FATALfatal / FATAL
Errorlogger.ERRORerror / ERROR
Warninglogger.WARNINGwarning / WARNING
Infologger.INFOinfo / INFO
Debuglogger.DEBUGdebug / DEBUG
Tracelogger.TRACEtrace / TRACE

NOTE: The default level of standard logger is INFO.

Encoders:

  • Text
  • JSON
  • Custom (your own encoder).

NOTE: The default encoder of standard logger is text.

Contributing

Feel free to contribute it or fork me... :wink:

# Packages

No description provided by the author