Documentation ¶ Index ¶ type Config type Logging func New(cfg Config) (*Logging, error) func (l *Logging) Close() error func (l *Logging) Fire(entry *logrus.Entry) error func (l *Logging) Levels() []logrus.Level func (l *Logging) Log(lvl, message string, t time.Time) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { LogPath string `json:"log_path"` LogName string `json:"log_name"` Prefix string `json:"prefix"` LogLevels []logrus.Level `json:"log_levels"` } type Logging ¶ type Logging struct { sync.Mutex // contains filtered or unexported fields } func New ¶ func New(cfg Config) (*Logging, error) func (*Logging) Close ¶ func (l *Logging) Close() error func (*Logging) Fire ¶ func (l *Logging) Fire(entry *logrus.Entry) error func (*Logging) Levels ¶ func (l *Logging) Levels() []logrus.Level func (*Logging) Log ¶ added in v2.1.1 func (l *Logging) Log(lvl, message string, t time.Time) error Source Files ¶ View all Source files config.go logging.go Click to show internal directories. Click to hide internal directories.