Documentation ¶
Index ¶
- func DeleteOldLogFiles()
- func GetLogFilePath() string
- func Initialize(logFolderPath string, logTopic string, logIndex int, logInstance int) int
- type LogFormatter
- type LogLimiter
- func (l *LogLimiter) Error(message string)
- func (l *LogLimiter) Errorf(format string, args ...interface{})
- func (l *LogLimiter) Info(message string)
- func (l *LogLimiter) Infof(format string, args ...interface{})
- func (l *LogLimiter) Log(level log.Level, message string)
- func (l *LogLimiter) Logf(level log.Level, format string, args ...interface{})
- func (l *LogLimiter) Warn(message string)
- func (l *LogLimiter) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOldLogFiles ¶
func DeleteOldLogFiles()
func GetLogFilePath ¶
func GetLogFilePath() string
Types ¶
type LogFormatter ¶
type LogFormatter struct { }
type LogLimiter ¶ added in v1.5.0
type LogLimiter struct {
// contains filtered or unexported fields
}
func NewLogLimiter ¶ added in v1.5.0
func NewLogLimiter(limit int) *LogLimiter
func (*LogLimiter) Error ¶ added in v1.5.0
func (l *LogLimiter) Error(message string)
func (*LogLimiter) Errorf ¶ added in v1.5.0
func (l *LogLimiter) Errorf(format string, args ...interface{})
func (*LogLimiter) Info ¶ added in v1.5.0
func (l *LogLimiter) Info(message string)
func (*LogLimiter) Infof ¶ added in v1.5.0
func (l *LogLimiter) Infof(format string, args ...interface{})
func (*LogLimiter) Logf ¶ added in v1.5.0
func (l *LogLimiter) Logf(level log.Level, format string, args ...interface{})
func (*LogLimiter) Warn ¶ added in v1.5.0
func (l *LogLimiter) Warn(message string)
func (*LogLimiter) Warnf ¶ added in v1.5.0
func (l *LogLimiter) Warnf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.