Documentation ¶
Overview ¶
package log sets up a shared zap.Logger that can be used by all packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger is a wrapper around zap.SugaredLogger
func Init ¶
Init initializes the logging system and sets the "service" key to the provided argument. This func should only be called once and after flag.Parse() has been called otherwise leveled logging will not be configured correctly.
func (Logger) AddCallerSkip ¶
Click to show internal directories.
Click to hide internal directories.