Documentation ¶
Index ¶
- type EntryAdapter
- func (e *EntryAdapter) Bool(key string, b bool) khl.Entry
- func (e *EntryAdapter) Bytes(key string, val []byte) khl.Entry
- func (e *EntryAdapter) Caller(depth int) khl.Entry
- func (e *EntryAdapter) Dur(key string, d time.Duration) khl.Entry
- func (e *EntryAdapter) Err(key string, err error) khl.Entry
- func (e *EntryAdapter) Float64(key string, f float64) khl.Entry
- func (e *EntryAdapter) IPAddr(key string, ip net.IP) khl.Entry
- func (e *EntryAdapter) Int(key string, i int) khl.Entry
- func (e *EntryAdapter) Int64(key string, i int64) khl.Entry
- func (e *EntryAdapter) Interface(key string, i interface{}) khl.Entry
- func (e *EntryAdapter) Msg(msg string)
- func (e *EntryAdapter) Msgf(f string, i ...interface{})
- func (e *EntryAdapter) Str(key string, s string) khl.Entry
- func (e *EntryAdapter) Strs(key string, s []string) khl.Entry
- func (e *EntryAdapter) Time(key string, t time.Time) khl.Entry
- type LoggerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryAdapter ¶
type EntryAdapter struct {
// contains filtered or unexported fields
}
func (*EntryAdapter) Interface ¶
func (e *EntryAdapter) Interface(key string, i interface{}) khl.Entry
func (*EntryAdapter) Msg ¶
func (e *EntryAdapter) Msg(msg string)
func (*EntryAdapter) Msgf ¶
func (e *EntryAdapter) Msgf(f string, i ...interface{})
type LoggerAdapter ¶
type LoggerAdapter struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(l *log.Logger) *LoggerAdapter
func (LoggerAdapter) Debug ¶
func (l LoggerAdapter) Debug() khl.Entry
func (LoggerAdapter) Error ¶
func (l LoggerAdapter) Error() khl.Entry
func (LoggerAdapter) Fatal ¶
func (l LoggerAdapter) Fatal() khl.Entry
func (LoggerAdapter) Info ¶
func (l LoggerAdapter) Info() khl.Entry
func (LoggerAdapter) Trace ¶
func (l LoggerAdapter) Trace() khl.Entry
func (LoggerAdapter) Warn ¶
func (l LoggerAdapter) Warn() khl.Entry
Click to show internal directories.
Click to hide internal directories.