Documentation ¶
Overview ¶
Package logger contains cofiguration for logger and multi level writer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Path string `yaml:"path" env:"LOG_PATH" envDefault:"/logs/"` ErrorFile string `yaml:"errorFile" env:"LOG_ERROR_FILE" envDefault:"error.log"` DebugFile string `yaml:"debugFile" env:"LOG_DEBUG_FILE" envDefault:"debug.log"` }
Config contains arguments for initilizing logger.
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
Configurator is a logger builder.
func NewConfigurator ¶
func NewConfigurator(config *Config) (*Configurator, error)
NewConfigurator is a logger constructor.
type LevelWriter ¶
LevelWriter is simple wraper for log write by level.
func (*LevelWriter) WriteLevel ¶
WriteLevel filter write by log level.
Click to show internal directories.
Click to hide internal directories.