Documentation
¶
Index ¶
- type EntryAdapter
- func (e *EntryAdapter) Bool(key string, b bool) kook.Entry
- func (e *EntryAdapter) Bytes(key string, val []byte) kook.Entry
- func (e *EntryAdapter) Caller(depth int) kook.Entry
- func (e *EntryAdapter) Dur(key string, d time.Duration) kook.Entry
- func (e *EntryAdapter) Err(key string, err error) kook.Entry
- func (e *EntryAdapter) Float64(key string, f float64) kook.Entry
- func (e *EntryAdapter) IPAddr(key string, ip net.IP) kook.Entry
- func (e *EntryAdapter) Int(key string, i int) kook.Entry
- func (e *EntryAdapter) Int64(key string, i int64) kook.Entry
- func (e *EntryAdapter) Interface(key string, i interface{}) kook.Entry
- func (e *EntryAdapter) Msg(msg string)
- func (e *EntryAdapter) Msgf(f string, i ...interface{})
- func (e *EntryAdapter) Str(key string, s string) kook.Entry
- func (e *EntryAdapter) Strs(key string, s []string) kook.Entry
- func (e *EntryAdapter) Time(key string, t time.Time) kook.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{}) kook.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() kook.Entry
func (LoggerAdapter) Error ¶
func (l LoggerAdapter) Error() kook.Entry
func (LoggerAdapter) Fatal ¶
func (l LoggerAdapter) Fatal() kook.Entry
func (LoggerAdapter) Info ¶
func (l LoggerAdapter) Info() kook.Entry
func (LoggerAdapter) Trace ¶
func (l LoggerAdapter) Trace() kook.Entry
func (LoggerAdapter) Warn ¶
func (l LoggerAdapter) Warn() kook.Entry
Click to show internal directories.
Click to hide internal directories.