Documentation ¶
Index ¶
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func InitLog(cfg config.LogConfig) error
- func LogIfError(err error, msg string)
- func Panic(v ...interface{})
- func PanicError(err error, v ...interface{})
- func Panicf(format string, v ...interface{})
- func Sync() error
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoHandler = errors.New("no handler")
)
Functions ¶
func LogIfError ¶
func PanicError ¶
func PanicError(err error, v ...interface{})
Types ¶
type Logger ¶
type Logger interface { Panic(v ...interface{}) Panicf(format string, v ...interface{}) Errorf(format string, v ...interface{}) Warnf(format string, v ...interface{}) Infof(format string, v ...interface{}) Debugf(format string, v ...interface{}) LogIfError(err error, msg string) Log(err error, format string, v ...interface{}) }
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.