Documentation
¶
Index ¶
- type File
- func (t *File) Debug(args ...interface{})
- func (t *File) Error(err error)
- func (t *File) Fatal(err error)
- func (t *File) Info(args ...interface{})
- func (t *File) Init() error
- func (t *File) Message(args ...interface{})
- func (t *File) Panic(err error)
- func (t *File) Push(level interfaces.LogLevel, msg string, toParent bool)
- func (t *File) SetLevel(level interfaces.LogLevel)
- func (t *File) Stop() error
- func (t *File) Warn(args ...interface{})
- type FileConfig
- type Mock
- func (t *Mock) Debug(args ...interface{})
- func (t *Mock) Error(err error)
- func (t *Mock) Fatal(err error)
- func (t *Mock) Info(args ...interface{})
- func (t *Mock) Init() error
- func (t *Mock) Message(args ...interface{})
- func (t *Mock) Panic(err error)
- func (t *Mock) Push(level interfaces.LogLevel, msg string, toParent bool)
- func (t *Mock) SetLevel(level interfaces.LogLevel)
- func (t *Mock) Stop() error
- func (t *Mock) Warn(args ...interface{})
- type Std
- func (t *Std) Debug(args ...interface{})
- func (t *Std) Error(err error)
- func (t *Std) Fatal(err error)
- func (t *Std) Info(args ...interface{})
- func (t *Std) Init() error
- func (t *Std) Message(args ...interface{})
- func (t *Std) Panic(err error)
- func (t *Std) Push(level interfaces.LogLevel, msg string, toParent bool)
- func (t *Std) SetLevel(level interfaces.LogLevel)
- func (t *Std) Stop() error
- func (t *Std) Warn(args ...interface{})
- type StdConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Parent interfaces.ILogger
Config FileConfig
// contains filtered or unexported fields
}
func NewFile ¶ added in v0.0.9
func NewFile(cfg FileConfig, parent interfaces.ILogger) *File
func (*File) SetLevel ¶
func (t *File) SetLevel(level interfaces.LogLevel)
type FileConfig ¶ added in v0.0.9
type FileConfig struct {
Level interfaces.LogLevel `yaml:"level"`
FName string `yaml:"filename"`
}
type Mock ¶
type Mock struct {
}
func (*Mock) SetLevel ¶
func (t *Mock) SetLevel(level interfaces.LogLevel)
type Std ¶
type Std struct {
Parent interfaces.ILogger
Config StdConfig
}
func (*Std) SetLevel ¶
func (t *Std) SetLevel(level interfaces.LogLevel)
type StdConfig ¶ added in v0.0.9
type StdConfig struct {
Level interfaces.LogLevel `yaml:"level"`
}
Click to show internal directories.
Click to hide internal directories.