logging

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteOldLogFiles

func DeleteOldLogFiles()

func GetLogFilePath

func GetLogFilePath() string

func Initialize

func Initialize(logFolderPath string, logTopic string, logIndex int, logInstance int) int

Types

type LogFormatter

type LogFormatter struct {
}

func (*LogFormatter) Format

func (lf *LogFormatter) Format(entry *log.Entry) ([]byte, error)

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) Log added in v1.5.0

func (l *LogLimiter) Log(level log.Level, message string)

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL