logger

package
v0.0.0-...-8dac769 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.Logger
	// contains filtered or unexported fields
}

func New

func New(info, error WriteSyncReopener, level zapcore.Level) *Logger

func (*Logger) Reopen

func (l *Logger) Reopen() error

type WriteSyncReopener

type WriteSyncReopener interface {
	Write(p []byte) (int, error)
	Sync() error
	Reopen() error
}

func OpenFile

func OpenFile(name string, flag int, perm os.FileMode) (WriteSyncReopener, error)

func Wrap

type WriteSyncer

type WriteSyncer interface {
	Write(p []byte) (int, error)
	Sync() error
}

Jump to

Keyboard shortcuts

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