log

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...Options) *zap.Logger

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) LogPath

func (l *Logger) LogPath(path string) Options

func (*Logger) MaxAge

func (l *Logger) MaxAge(maxAge int) Options

func (*Logger) MaxBackups

func (l *Logger) MaxBackups(maxBackups int) Options

func (*Logger) MaxSize

func (l *Logger) MaxSize(maxSize int) Options

func (*Logger) TimeLayout

func (l *Logger) TimeLayout(layout string) Options

type Options

type Options func(l *Logger)

Jump to

Keyboard shortcuts

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