Documentation ¶
Index ¶
- Variables
- func LogDebugf(format string, args ...interface{})
- func LogErrorf(format string, args ...interface{})
- func LogFatalf(format string, args ...interface{})
- func LogInfof(format string, args ...interface{})
- func LogTracef(format string, args ...interface{})
- func LogWarnf(format string, args ...interface{})
- func Setup(productName string, settingLogLeve logrus.Level, logMaxSaveDays int64, ...)
- type GTLog
- func (aLog *GTLog) Debugf(format string, args ...interface{})
- func (aLog *GTLog) Errorf(format string, args ...interface{})
- func (aLog *GTLog) Fatalf(format string, args ...interface{})
- func (aLog *GTLog) Ininfof(format string, args ...interface{})
- func (alog *GTLog) Setup()
- func (aLog *GTLog) Tracef(format string, args ...interface{})
- func (aLog *GTLog) Warnf(format string, args ...interface{})
- type GTLogSaveType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ALog *GTLog GTLogOnce sync.Once ProjectName = "test" LogLevel = logrus.DebugLevel LogSaveMaxDays int64 LogSaveFlag = GTLogSaveTypeDays LogPath = "./logs/run" )
Functions ¶
func LogFatalf ¶ added in v1.9.5
func LogFatalf(format string, args ...interface{})
LogFatalf format格式化log--Fatal信息
func LogTracef ¶ added in v1.9.5
func LogTracef(format string, args ...interface{})
LogTracef format格式化log--Trace信息
Types ¶
type GTLog ¶
type GTLog struct {
// contains filtered or unexported fields
}
type GTLogSaveType ¶ added in v1.9.8
type GTLogSaveType int
GTLogSaveType 日志分片类型
const ( GTLogSaveTypeDays GTLogSaveType = iota //按日分片 GTLogSaveHours //按小时分片 )
func (GTLogSaveType) String ¶ added in v1.9.8
func (aFlag GTLogSaveType) String() string
Click to show internal directories.
Click to hide internal directories.