Versions in this module Expand all Collapse all v0 v0.0.0 Jul 23, 2022 Changes in this version + const ALL + const CONSOLE + const DEBUG + const ERROR + const FILE + const INFO + const JSON + const PANIC + const TXT + const WARN + type Logx struct + func NewLogx(cfg LogxConfig) (*Logx, error) + type LogxConfig struct + Caller bool + Compress bool + Development bool + Formatter string + HasTimestamp bool + Level string + LogName string + MaxAge int + MaxBackNum int + MaxSize int + OutType string + type LogxOpt func(*LogxConfig) + func WithBackNum(num int) LogxOpt + func WithCaller(has bool) LogxOpt + func WithCompress(cpr bool) LogxOpt + func WithDev(has bool) LogxOpt + func WithFileName(name string) LogxOpt + func WithFormatter(formatter string) LogxOpt + func WithLevel(level string) LogxOpt + func WithMaxAge(day int) LogxOpt + func WithMaxSize(size int) LogxOpt + func WithOutType(tp string) LogxOpt