Documentation
¶
Index ¶
- type File
- func (t *File) Debug(ctx context.Context, args ...interface{})
- func (t *File) Error(ctx context.Context, err error)
- func (t *File) Fatal(ctx context.Context, err error)
- func (t *File) Info(ctx context.Context, args ...interface{})
- func (t *File) Init(cfg interfaces.IConfig) error
- func (t *File) Message(ctx context.Context, args ...interface{})
- func (t *File) Panic(ctx context.Context, err error)
- func (t *File) SetLevel(level interfaces.LogLevel)
- func (t *File) Stop() error
- func (t *File) Warn(ctx context.Context, args ...interface{})
- type FileConfig
- type Mock
- func (t *Mock) Debug(ctx context.Context, args ...interface{})
- func (t *Mock) Error(ctx context.Context, err error)
- func (t *Mock) Fatal(ctx context.Context, err error)
- func (t *Mock) Info(ctx context.Context, args ...interface{})
- func (t *Mock) Init(cfg interfaces.IConfig) error
- func (t *Mock) Message(ctx context.Context, args ...interface{})
- func (t *Mock) Panic(ctx context.Context, err error)
- func (t *Mock) SetLevel(level interfaces.LogLevel)
- func (t *Mock) Stop() error
- func (t *Mock) Warn(ctx context.Context, args ...interface{})
- type Sentry
- func (t *Sentry) Debug(ctx context.Context, args ...interface{})
- func (t *Sentry) Error(ctx context.Context, err error)
- func (t *Sentry) Fatal(ctx context.Context, err error)
- func (t *Sentry) Info(ctx context.Context, args ...interface{})
- func (t *Sentry) Init(cfg interfaces.IConfig) error
- func (t *Sentry) Message(ctx context.Context, args ...interface{})
- func (t *Sentry) Panic(ctx context.Context, err error)
- func (t *Sentry) SetLevel(level interfaces.LogLevel)
- func (t *Sentry) Stop() error
- func (t *Sentry) Warn(ctx context.Context, args ...interface{})
- type SentryConfig
- type Std
- func (t *Std) Debug(ctx context.Context, args ...interface{})
- func (t *Std) Error(ctx context.Context, err error)
- func (t *Std) Fatal(ctx context.Context, err error)
- func (t *Std) Info(ctx context.Context, args ...interface{})
- func (t *Std) Init(cfg interfaces.IConfig) error
- func (t *Std) Message(ctx context.Context, args ...interface{})
- func (t *Std) Panic(ctx context.Context, err error)
- func (t *Std) SetLevel(level interfaces.LogLevel)
- func (t *Std) Stop() error
- func (t *Std) Warn(ctx context.Context, 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 Sentry ¶ added in v0.2.0
type Sentry struct { Parent interfaces.ILogger Config SentryConfig // contains filtered or unexported fields }
func NewSentry ¶ added in v0.2.0
func NewSentry(cfg SentryConfig, parent interfaces.ILogger) *Sentry
func (*Sentry) SetLevel ¶ added in v0.2.0
func (t *Sentry) SetLevel(level interfaces.LogLevel)
type SentryConfig ¶ added in v0.2.0
type Std ¶
type Std struct { Parent interfaces.ILogger Config StdConfig // contains filtered or unexported fields }
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.