logger

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 4 Imported by: 12

README

logger

logger 是对 lumberjackzap 的简单包装.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(template string, args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func New

func New(optsF ...OptionFunc)

func NewPathMode

func NewPathMode(path, mode string)

func Sync

func Sync()

func Warnf

func Warnf(template string, args ...interface{})

Types

type OptionFunc

type OptionFunc func(opts *Options)

type Options

type Options struct {
	Mode     string
	FileName string

	MaxSize    int
	MaxAge     int
	MaxBackups int

	LocalTime bool
	Compress  bool
}

Jump to

Keyboard shortcuts

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