Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) *zap.SugaredLogger
func InitLogger ¶ added in v0.4.0
func InitLogger(level LogLevel)
Initializes the logger with the input level, defaulting to Info if the input is invalid
Types ¶
type LogLevel ¶ added in v0.4.0
type LogLevel string
func ParseLevel ¶ added in v0.4.0
convert a string to the LogLevel type
Click to show internal directories.
Click to hide internal directories.