Documentation ¶
Index ¶
- func Debug(msg string, ctx ...interface{})
- func Error(msg string, ctx ...interface{})
- func Info(msg string, ctx ...interface{})
- type Ctx
- type Logger
- type LoggerImpl
- func (l *LoggerImpl) Debug(msg string, ctx ...interface{})
- func (l *LoggerImpl) Error(msg string, ctx ...interface{})
- func (l *LoggerImpl) Info(msg string, ctx ...interface{})
- func (l *LoggerImpl) Printf(format string, params ...interface{})
- func (l *LoggerImpl) Println(format string, params ...interface{})
- type TerminalStringer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ctx ¶
type Ctx map[string]interface{}
Ctx is a map of key/value pairs to pass as context to a log function Use this only if you really need greater safety around the arguments you pass to the logging functions.
type Logger ¶
type LoggerImpl ¶
type LoggerImpl struct {
// contains filtered or unexported fields
}
func (*LoggerImpl) Debug ¶
func (l *LoggerImpl) Debug(msg string, ctx ...interface{})
func (*LoggerImpl) Error ¶
func (l *LoggerImpl) Error(msg string, ctx ...interface{})
func (*LoggerImpl) Info ¶
func (l *LoggerImpl) Info(msg string, ctx ...interface{})
func (*LoggerImpl) Printf ¶
func (l *LoggerImpl) Printf(format string, params ...interface{})
func (*LoggerImpl) Println ¶
func (l *LoggerImpl) Println(format string, params ...interface{})
type TerminalStringer ¶
type TerminalStringer interface {
TerminalString() string
}
TerminalStringer is an analogous interface to the stdlib stringer, allowing own types to have custom shortened serialization formats when printed to the screen.
Click to show internal directories.
Click to hide internal directories.