rollinglogger

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 7 Imported by: 0

README

rollinglogger

a rolling logger

Documentation

Index

Constants

View Source
const (
	Debug = "debug"
	Info  = "info"
	Warn  = "warn"
	Error = "error"
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts Options) *zap.Logger

NewLogger create a rolling logger by options

Types

type Options

type Options struct {
	Level    string
	Filename string
	MaxSize  int
	MaxAge   int
}

Jump to

Keyboard shortcuts

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