Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(logLevel string) (*zap.SugaredLogger, error)
NewLogger returns a zap sugared logger configured with json format and caller id
func NewLoggerWithEncoding ¶
func NewLoggerWithEncoding(logLevel, zapEncoding string) (*zap.SugaredLogger, error)
NewLoggerWithEncoding returns a zap sugared logger configured with provided format, e.g. console or json, and caller id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.