Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + const DATEFORMAT + const DATETIMEFORMAT + const DEFAULT_FILE_COUNT + const DEFAULT_FILE_SIZE + const TIMEZONEFORMAT + func GetGID() string + func NewSyncWriter(w io.Writer) io.Writer + func NewTMFmtLogger(w io.Writer) kitlog.Logger + type Logger interface + Debug func(msg string, keyvals ...interface{}) + Error func(msg string, keyvals ...interface{}) + Fatal func(msg string, keyvals ...interface{}) + Flush func() + Info func(msg string, keyvals ...interface{}) + Trace func(msg string, keyvals ...interface{}) + Warn func(msg string, keyvals ...interface{}) + With func(keyvals ...interface{}) Logger + func NewFileFilter(file string, lvl string, next Logger, options ...Option) Logger + func NewFilter(next Logger, options ...Option) Logger + func NewNopLogger() Logger + func NewOldTMLogger(w io.Writer) Logger + func NewOldTMLoggerWithColorFn(w io.Writer, colorFn func(keyvals ...interface{}) term.FgBgColor) Logger + func NewTMJSONLogger(w io.Writer) Logger + func NewTracingLogger(next Logger) Logger + func TestingLogger() Logger + func TestingLoggerWithColorFn(colorFn func(keyvals ...interface{}) term.FgBgColor) Logger + type Loggerf interface + AllowLevel func(lvl string) + Debugf func(fmtStr string, vals ...interface{}) + Errorf func(fmtStr string, vals ...interface{}) + Fatalf func(fmtStr string, vals ...interface{}) + Infof func(fmtStr string, vals ...interface{}) + SetOutputAsync func(isAsync bool) + SetOutputFileSize func(maxFileSize int) + SetOutputToFile func(isToFile bool) + SetOutputToScreen func(isToScreen bool) + SetWithThreadID func(with bool) + Tracef func(fmtStr string, vals ...interface{}) + Warnf func(fmtStr string, vals ...interface{}) + func NewTMLogger(path, module string) Loggerf + type Option func(*filter) + func AllowAll() Option + func AllowDebug() Option + func AllowDebugWith(key interface{}, value interface{}) Option + func AllowError() Option + func AllowErrorWith(key interface{}, value interface{}) Option + func AllowFatal() Option + func AllowInfo() Option + func AllowInfoWith(key interface{}, value interface{}) Option + func AllowLevel(lvl string) (Option, error) + func AllowNone() Option + func AllowNoneWith(key interface{}, value interface{}) Option + func AllowTrace() Option + func AllowWarn() Option + func AllowWarnWith(key interface{}, value interface{}) Option