log

package
v0.0.0-...-1acf2d3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ldate = 1 << iota
	Ltime
	Lmicroseconds
	Llongfile
	Lshortfile
	LUTC
	LstdFlags = Ldate | Ltime

	MaxOutput = 3
)

Variables

This section is empty.

Functions

func New

func New(out ...io.Writer) *logger

Types

type TimeRotateHandler

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

func NewRotateHandler

func NewRotateHandler(path string, filename string, ext string, maxFile int) *TimeRotateHandler

func (*TimeRotateHandler) Write

func (t *TimeRotateHandler) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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