logger

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 4 Imported by: 0

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 Init

func Init(path string, optsF ...OptionFunc)

func Sync

func Sync()

func Warnf

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

Types

type OptionFunc

type OptionFunc func(opts *Options)

func WithMode

func WithMode(mode string) OptionFunc

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