Versions in this module Expand all Collapse all v1 v1.1.0 Jan 4, 2022 Changes in this version + func SetDefault(l *LoggingT) v1.0.9 Dec 24, 2021 v1.0.8 Dec 24, 2021 v1.0.7 Dec 24, 2021 Changes in this version + func Close() + func CopyStandardLogTo(name string) + func DisableTerminal() + func EnableFile() + func Error(args ...interface{}) + func ErrorDepth(depth int, args ...interface{}) + func Errorf(format string, args ...interface{}) + func Errorln(args ...interface{}) + func Exit(args ...interface{}) + func ExitDepth(depth int, args ...interface{}) + func Exitf(format string, args ...interface{}) + func Exitln(args ...interface{}) + func Fatal(args ...interface{}) + func FatalDepth(depth int, args ...interface{}) + func Fatalf(format string, args ...interface{}) + func Fatalln(args ...interface{}) + func Info(args ...interface{}) + func InfoDepth(depth int, args ...interface{}) + func Infof(format string, args ...interface{}) + func Infoln(args ...interface{}) + func SetContentType(tp MsgType) + func SetLevel(level int) + func SetTrace(backtrace string) + func SetVModule(v string) + func Truncate(path string, capacity int64, f *os.File) error + func Warning(args ...interface{}) + func WarningDepth(depth int, args ...interface{}) + func Warningf(format string, args ...interface{}) + func Warningln(args ...interface{}) + type DailyRotateRule struct + func (r *DailyRotateRule) BackupFileName() string + func (r *DailyRotateRule) MarkRotated() + func (r *DailyRotateRule) MaxSize() int64 + func (r *DailyRotateRule) OutdatedFiles() []string + func (r *DailyRotateRule) SetFileName(fname string) bool + func (r *DailyRotateRule) ShallRotate(nbytes int) bool + type Level int32 + type LogConf struct + Backtrace string + Compress bool + ContentType int64 + FlushTm int + KeepDays int + MaxSize int + Path string + ServiceName string + TimeFormat string + V int + Vmodule string + WriteConsole bool + WriteFile bool + func NewConfig() *LogConf + type LoggingT struct + func NewLog(c *LogConf) *LoggingT + func (l *LoggingT) Close() + func (l *LoggingT) DisableTerminal() + func (l *LoggingT) EnableFile() + func (l *LoggingT) Error(args ...interface{}) + func (l *LoggingT) ErrorDepth(depth int, args ...interface{}) + func (l *LoggingT) Errorf(format string, args ...interface{}) + func (l *LoggingT) Errorln(args ...interface{}) + func (l *LoggingT) Exit(args ...interface{}) + func (l *LoggingT) ExitDepth(depth int, args ...interface{}) + func (l *LoggingT) Exitf(format string, args ...interface{}) + func (l *LoggingT) Exitln(args ...interface{}) + func (l *LoggingT) Fatal(args ...interface{}) + func (l *LoggingT) FatalDepth(depth int, args ...interface{}) + func (l *LoggingT) Fatalf(format string, args ...interface{}) + func (l *LoggingT) Fatalln(args ...interface{}) + func (l *LoggingT) Info(args ...interface{}) + func (l *LoggingT) InfoDepth(depth int, args ...interface{}) + func (l *LoggingT) Infof(format string, args ...interface{}) + func (l *LoggingT) Infoln(args ...interface{}) + func (l *LoggingT) SetContentType(tp MsgType) error + func (l *LoggingT) SetLevel(level int) + func (l *LoggingT) SetTrace(backtrace string) error + func (l *LoggingT) SetUp(c *LogConf) + func (l *LoggingT) SetVModule(value string) error + func (l *LoggingT) V(level Level) Verbose + func (l *LoggingT) Warning(args ...interface{}) + func (l *LoggingT) WarningDepth(depth int, args ...interface{}) + func (l *LoggingT) Warningf(format string, args ...interface{}) + func (l *LoggingT) Warningln(args ...interface{}) + type MsgType int64 + const MSG_DEFT + const MSG_JSON + const MSG_SELF + type RotateLogger struct + func NewLogger(sev severity, logT *LoggingT, tag string, rule RotateRule, compress bool) (*RotateLogger, error) + func (l *RotateLogger) Close() error + func (l *RotateLogger) Sync() error + func (l *RotateLogger) Write(data []byte) (int, error) + func (l *RotateLogger) WriteHeader() + type RotateRule interface + BackupFileName func() string + MarkRotated func() + MaxSize func() int64 + OutdatedFiles func() []string + SetFileName func(string) bool + ShallRotate func(int) bool + func DefaultRotateRule(filename, delimiter string, opt *logOptions) RotateRule + type Verbose struct + func V(level Level) Verbose + func (v Verbose) Info(args ...interface{}) + func (v Verbose) Infof(format string, args ...interface{}) + func (v Verbose) Infoln(args ...interface{})