Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DummyLogger = func() Logger { logger, _ := dummy.NewLogger(); return logger }() DebugLogger = func() Logger { logger, _ := NewLogger( WithFileName("go-kit.log"), WithMaxSize(3), WithMaxBackups(3), WithMaxAge(3), WithLevel(vars.Debug), WithLogType(vars.Zap), WithConsole(true), ) return logger }() )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debugf(template string, args ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Infof(template string, args ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warnf(template string, args ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorf(template string, args ...interface{}) Errorw(msg string, keysAndValues ...interface{}) }
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithConsole ¶
func WithFileName ¶
func WithLogType ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxSize ¶
Click to show internal directories.
Click to hide internal directories.