logger

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(options ...ConfigOption) *zap.Logger

BuildLogger builds a logger with config options

Types

type ConfigOption added in v0.8.3

type ConfigOption func(*zap.Config)

ConfigOption is a way of configuring a logger

func ConfigWithDevelopmentMode added in v0.8.3

func ConfigWithDevelopmentMode() ConfigOption

ConfigWithDevelopmentMode configures a logger for dev mode

func ConfigWithLevel added in v0.8.3

func ConfigWithLevel(l zapcore.Level) ConfigOption

ConfigWithLevel configures a logger's level

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL