Documentation ¶
Index ¶
- Variables
- func Build(cfg zap.Config) (*zap.Logger, error)
- func BuildJSONFileLogger(level, filePath string) (*zap.Logger, error)
- func BuildStandardConsoleLogger(level string) (*zap.Logger, error)
- func BuildStandardJSONLogger(level string) (*zap.Logger, error)
- func DefaultConfig() zap.Config
- func EnsureIsSupportedLogLevel(level string) error
- func IsSupportedLogLevel(level string) bool
- func Sync(logger Logger) func()
- func WithConsoleFormat(cfg zap.Config) zap.Config
- func WithFileOutput(cfg zap.Config, filePath string) zap.Config
- func WithFileOutputForDedicatedProcess(cfg zap.Config, dirPath string) zap.Config
- func WithJSONFormat(cfg zap.Config) zap.Config
- func WithLevel(cfg zap.Config, level string) zap.Config
- func WithStandardOutput(cfg zap.Config) zap.Config
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedLogLevels = []string{ zapcore.DebugLevel.String(), zapcore.InfoLevel.String(), zapcore.WarnLevel.String(), zapcore.ErrorLevel.String(), }
Functions ¶
func BuildJSONFileLogger ¶ added in v0.60.0
func BuildStandardConsoleLogger ¶ added in v0.60.0
func BuildStandardJSONLogger ¶ added in v0.60.0
func DefaultConfig ¶ added in v0.60.0
func EnsureIsSupportedLogLevel ¶ added in v0.60.0
func IsSupportedLogLevel ¶ added in v0.60.0
func WithFileOutput ¶ added in v0.60.0
func WithFileOutputForDedicatedProcess ¶ added in v0.60.0
Types ¶
Click to show internal directories.
Click to hide internal directories.