logger

package
v0.0.0-...-c600a59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLog

func WriteLog(logger *logrus.Logger, log LogRecord)

Types

type LogFormatter

type LogFormatter struct{}

func (*LogFormatter) Format

func (f *LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

type LogRecord

type LogRecord struct {
	Level       logrus.Level
	JobName     string
	StorageName string
	Message     string
}

func Log

func Log(jobName, storageName string) LogRecord

func (LogRecord) Debug

func (r LogRecord) Debug(args ...interface{}) LogRecord

func (LogRecord) Debugf

func (r LogRecord) Debugf(format string, args ...interface{}) LogRecord

func (LogRecord) Error

func (r LogRecord) Error(args ...interface{}) LogRecord

func (LogRecord) Errorf

func (r LogRecord) Errorf(format string, args ...interface{}) LogRecord

func (LogRecord) Info

func (r LogRecord) Info(args ...interface{}) LogRecord

func (LogRecord) Infof

func (r LogRecord) Infof(format string, args ...interface{}) LogRecord

func (LogRecord) Warn

func (r LogRecord) Warn(args ...interface{}) LogRecord

func (LogRecord) Warnf

func (r LogRecord) Warnf(format string, args ...interface{}) LogRecord

Jump to

Keyboard shortcuts

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