Documentation ¶
Index ¶
- Variables
- func Debug(v ...interface{})
- func DebugF(format string, v ...interface{})
- func Error(v ...interface{})
- func ErrorF(format string, v ...interface{})
- func Fatal(v ...interface{})
- func FatalF(format string, v ...interface{})
- func Info(v ...interface{})
- func InfoF(format string, v ...interface{})
- func Panic(v ...interface{})
- func PanicF(format string, v ...interface{})
- func SetAdapter(adapter Adapter)
- func Warn(v ...interface{})
- func WarnF(format string, v ...interface{})
- func WithHook(fns ...func(msg *Message))
- type Adapter
- type ConsoleAdapter
- type DataField
- type Entry
- func (entry *Entry) Debug(v ...interface{})
- func (entry *Entry) DebugF(format string, v ...interface{})
- func (entry *Entry) Error(v ...interface{})
- func (entry *Entry) ErrorF(format string, v ...interface{})
- func (entry *Entry) Fatal(v ...interface{})
- func (entry *Entry) FatalF(format string, v ...interface{})
- func (entry *Entry) Info(v ...interface{})
- func (entry *Entry) InfoF(format string, v ...interface{})
- func (entry *Entry) Panic(v ...interface{})
- func (entry *Entry) PanicF(format string, v ...interface{})
- func (entry *Entry) Warn(v ...interface{})
- func (entry *Entry) WarnF(format string, v ...interface{})
- func (entry *Entry) WithField(field string, value interface{}) *Entry
- func (entry *Entry) WithTag(tags ...string) *Entry
- func (entry *Entry) WithTrace() *Entry
- type FileAdapter
- type FileOption
- type Level
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) DebugF(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) ErrorF(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) FatalF(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) InfoF(format string, v ...interface{})
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) PanicF(format string, v ...interface{})
- func (l *Logger) SetAdapter(adapter Adapter)
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) WarnF(format string, v ...interface{})
- func (l *Logger) WithField(field string, value interface{}) *Entry
- func (l *Logger) WithHook(fns ...func(msg *Message))
- func (l *Logger) WithTag(tags ...string) *Entry
- func (l *Logger) WithTrace() *Entry
- type Message
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SetAdapter ¶
func SetAdapter(adapter Adapter)
Types ¶
type ConsoleAdapter ¶
type ConsoleAdapter struct { }
func (*ConsoleAdapter) Write ¶
func (ca *ConsoleAdapter) Write(msg *Message)
type Entry ¶
type FileAdapter ¶
type FileAdapter struct {
// contains filtered or unexported fields
}
func NewFileAdapter ¶
func NewFileAdapter(opt ...FileOption) *FileAdapter
func (*FileAdapter) Write ¶
func (fa *FileAdapter) Write(msg *Message)
type FileOption ¶ added in v1.1.1
type FileOption interface {
// contains filtered or unexported methods
}
func FileMaxSizeOption ¶
func FileMaxSizeOption(maxSize int64) FileOption
func FilePathOption ¶ added in v1.1.1
func FilePathOption(filepath string) FileOption
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewConsoleLog ¶ added in v1.1.1
func NewConsoleLog() *Logger
func NewFileLog ¶ added in v1.1.1
func NewFileLog(opts ...FileOption) *Logger
func (*Logger) SetAdapter ¶
Click to show internal directories.
Click to hide internal directories.