logging

package
v0.0.0-...-a41a74f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomLogFormatter

type CustomLogFormatter struct {
	TimestampFormat string
	LevelDesc       []string
}

func NewCustomLogFormatter

func NewCustomLogFormatter() *CustomLogFormatter

func (*CustomLogFormatter) Format

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

type Fields

type Fields = logrus.Fields

Fields is an alias to logrus.Fields

type Logger

type Logger interface {
	logrus.FieldLogger
}

Logger wraps a logrus.FieldLogger to provide all standard logging functionality

func WithFields

func WithFields(fields Fields) Logger

WithFields adds field annotations to the logger instance

func WithoutFields

func WithoutFields() Logger

WithoutFields uses the default logger with no extra field annotations

Jump to

Keyboard shortcuts

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