Back to

Package log

Latest Go to latest

The latest major version is .

Published: Sep 20, 2020 | License: Apache-2.0 | Module:



var (
	DefaultLogFile = "/tmp/fastweb/fastweb.log"

func RFC3339TimeEncoder

func RFC3339TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

type Logger

type Logger struct {
	// contains filtered or unexported fields

func NewLogger

func NewLogger(level zapcore.Level, maxSize, maxAge, maxBackups int, logFile ...string) (*Logger, error)

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

type NoCopy

type NoCopy struct{}

Embed this type into a struct, which mustn't be copied, so `go vet` gives a warning if this struct is copied.

See for details. and also:

func (*NoCopy) Lock

func (*NoCopy) Lock()

func (*NoCopy) Unlock

func (*NoCopy) Unlock()

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier