log

package
v0.0.0-...-352fc9d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level Level
}

type Level

type Level string
const (
	DEBUG Level = "DEBUG"
	INFO  Level = "INFO"
	WARN  Level = "WARN"
)

func (Level) Zap

func (l Level) Zap() zapcore.Level

type Logger

type Logger struct {
	*zap.Logger
}

func New

func New(cfg Config) *Logger

func (*Logger) Close

func (l *Logger) Close()

func (*Logger) Zap

func (l *Logger) Zap() *zap.Logger

Jump to

Keyboard shortcuts

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