Documentation
¶
Index ¶
- Variables
- func Debugf(template string, args ...interface{})
- func ErrWrapper(err Err) error
- func Errorf(template string, args ...interface{})
- func Infof(template string, args ...interface{})
- func Warnf(template string, args ...interface{})
- type API
- type Err
- type Level
- type Meta
- type Option
- func WithBuilder(builder func(*Meta) (API, error)) Option
- func WithCaller(Caller bool) Option
- func WithConsole(Console bool) Option
- func WithFileName(FileName string) Option
- func WithLevel(Level Level) Option
- func WithMaxAge(MaxAge int) Option
- func WithMaxBackups(MaxBackups int) Option
- func WithMaxSize(MaxSize int) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DebugLogger = func() API { logger, _ := NewLogger( WithFileName("go-kit.log"), WithMaxSize(3), WithMaxBackups(3), WithMaxAge(3), WithLevel(Dummy), WithConsole(true), WithCaller(true), ) return logger }() DummyLogger = func() API { logger, _ := NewLogger( WithFileName("go-kit.log"), WithMaxSize(3), WithMaxBackups(3), WithMaxAge(3), WithLevel(Dummy), WithConsole(false), ) return logger }() )
Functions ¶
func ErrWrapper ¶ added in v0.0.34
Types ¶
type API ¶ added in v0.0.34
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCaller ¶ added in v0.0.44
func WithConsole ¶
func WithFileName ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxSize ¶
Click to show internal directories.
Click to hide internal directories.