Documentation
¶
Index ¶
- func Debugf(ctx *context.Context, format string, values ...interface{})
- func Debugw(ctx *context.Context, message string, keysAndValues ...interface{})
- func Errorf(ctx *context.Context, format string, values ...interface{})
- func Errorw(ctx *context.Context, message string, keysAndValues ...interface{})
- func Fatalf(ctx *context.Context, format string, values ...interface{})
- func Fatalw(ctx *context.Context, message string, keysAndValues ...interface{})
- func Infof(ctx *context.Context, format string, values ...interface{})
- func Infow(ctx *context.Context, message string, keysAndValues ...interface{})
- func Init(loggerConfig Config) (err error)
- func TraceBegin(ctx *context.Context, message string, keysAndValues ...interface{})
- func TraceEnd(ctx *context.Context, state interface{})
- func TraceEndRoot(ctx *context.Context, state interface{})
- func Warnf(ctx *context.Context, format string, values ...interface{})
- func Warnw(ctx *context.Context, message string, keysAndValues ...interface{})
- type Config
- type Logger
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TraceBegin ¶
func TraceEndRoot ¶
Types ¶
type LoggerConfig ¶
type LoggerConfig struct { ConfigPath string `toml:"config-path"` Stdout *output.StdoutConfig `toml:"stdout"` Dump *output.DumpConfig `toml:"dump"` }
func DefaultConfig ¶
func DefaultConfig() (*LoggerConfig, error)
func (*LoggerConfig) Build ¶
func (lc *LoggerConfig) Build() (Logger, error)
Click to show internal directories.
Click to hide internal directories.