Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
func FromContext ¶
func NewLogger ¶
func NewLogger(conf *LoggerConfig) *Logger
func NewNopLogger ¶
func NewNopLogger() *Logger
type LoggerConfig ¶
type LoggerConfig struct { Level LoggerLevel `long:"level" description:"set log level" default:"info" env:"LEVEL"` Development bool `long:"development" description:"enable development mode" env:"DEVELOPMENT"` }
type LoggerLevel ¶
func (LoggerLevel) MarshalFlag ¶
func (l LoggerLevel) MarshalFlag() (string, error)
func (*LoggerLevel) UnmarshalFlag ¶
func (l *LoggerLevel) UnmarshalFlag(value string) error
type SaramaLogger ¶
type SaramaLogger struct {
*Logger
}
SaramaLogger implements saramakit.Logger
func NewSaramaLogger ¶
func NewSaramaLogger(logger *Logger) *SaramaLogger
func (*SaramaLogger) Error ¶
func (l *SaramaLogger) Error(msg string, err error)
Click to show internal directories.
Click to hide internal directories.