Documentation ¶
Index ¶
- func Crit(msg string, ctx ...interface{})
- func Debug(msg string, ctx ...interface{})
- func Error(msg string, ctx ...interface{})
- func GetHandler() log15.Handler
- func Info(msg string, ctx ...interface{})
- func Module15(module string) log15.Logger
- func SetHandler(h log15.Handler)
- func StackError(msg string, ctx error)
- func Trace(msg string, ctx ...interface{})
- func Warn(msg string, ctx ...interface{})
- func WithContext(ctx context.Context, l Logger) context.Context
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, ctx ...interface{})
Debug is a convenient alias for Root().Debug
func Error ¶
func Error(msg string, ctx ...interface{})
Error is a convenient alias for Root().Error
func GetHandler ¶
func SetHandler ¶
func StackError ¶
Types ¶
type Logger ¶
type Logger interface { log15.Logger Trace(msg string, ctx ...interface{}) NewLogger(ctx ...interface{}) Logger SetLevel(lvl log15.Lvl) Logger SetLevelString(lvlString string) Logger NewContextLogger(c context.Context, ctx ...interface{}) (context.Context, Logger) }
func New ¶
func New(ctx ...interface{}) Logger
New returns a new logger with the given context. New is a convenient alias for Root().New
func SetLevelString ¶
Click to show internal directories.
Click to hide internal directories.