logger

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

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) Debug

func (t *File) Debug(args ...interface{})

func (*File) Error

func (t *File) Error(err error)

func (*File) Fatal

func (t *File) Fatal(err error)

func (*File) Info

func (t *File) Info(args ...interface{})

func (*File) Init

func (t *File) Init() error

func (*File) Message

func (t *File) Message(args ...interface{})

func (*File) Panic

func (t *File) Panic(err error)

func (*File) Push

func (t *File) Push(level interfaces.LogLevel, msg string, toParent bool)

func (*File) SetLevel

func (t *File) SetLevel(level interfaces.LogLevel)

func (*File) Stop

func (t *File) Stop() error

func (*File) Warn

func (t *File) Warn(args ...interface{})

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 NewMock added in v0.0.9

func NewMock() *Mock

func (*Mock) Debug

func (t *Mock) Debug(args ...interface{})

func (*Mock) Error

func (t *Mock) Error(err error)

func (*Mock) Fatal

func (t *Mock) Fatal(err error)

func (*Mock) Info

func (t *Mock) Info(args ...interface{})

func (*Mock) Init

func (t *Mock) Init() error

func (*Mock) Message

func (t *Mock) Message(args ...interface{})

func (*Mock) Panic

func (t *Mock) Panic(err error)

func (*Mock) Push

func (t *Mock) Push(level interfaces.LogLevel, msg string, toParent bool)

func (*Mock) SetLevel

func (t *Mock) SetLevel(level interfaces.LogLevel)

func (*Mock) Stop

func (t *Mock) Stop() error

func (*Mock) Warn

func (t *Mock) Warn(args ...interface{})

type Std

type Std struct {
	Parent interfaces.ILogger
	Config StdConfig
}

func NewStd added in v0.0.9

func NewStd(cfg StdConfig, parent interfaces.ILogger) *Std

func (*Std) Debug

func (t *Std) Debug(args ...interface{})

func (*Std) Error

func (t *Std) Error(err error)

func (*Std) Fatal

func (t *Std) Fatal(err error)

func (*Std) Info

func (t *Std) Info(args ...interface{})

func (*Std) Init

func (t *Std) Init() error

func (*Std) Message

func (t *Std) Message(args ...interface{})

func (*Std) Panic

func (t *Std) Panic(err error)

func (*Std) Push

func (t *Std) Push(level interfaces.LogLevel, msg string, toParent bool)

func (*Std) SetLevel

func (t *Std) SetLevel(level interfaces.LogLevel)

func (*Std) Stop

func (t *Std) Stop() error

func (*Std) Warn

func (t *Std) Warn(args ...interface{})

type StdConfig added in v0.0.9

type StdConfig struct {
	Level interfaces.LogLevel `yaml:"level"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL