logger

package
v0.0.0-...-9a5def8 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg ...interface{})

Debug log output with DEBUG

func Error

func Error(ctx context.Context, msg ...interface{})

Error log output with Error

func Info

func Info(ctx context.Context, msg ...interface{})

Info log output with Info

func Warn

func Warn(ctx context.Context, msg ...interface{})

Warn log output with Warn

Types

type PlainFormatter

type PlainFormatter struct {
	TimestampFormat string
	LevelDesc       []string
}

PlainFormatter struct

func (*PlainFormatter) Format

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

Format is formatted log output

Jump to

Keyboard shortcuts

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