logging

package
v0.0.0-20240423 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPTION_LEVEL = "level"
	OPTION_FILE  = "file"
)

Variables

View Source
var (
	WithLevel, GetLevel = option.New[string](OPTION_LEVEL)
	WithFile, GetFile   = option.New[string](OPTION_FILE)
)

Functions

func DefaultNewLoggerOptions

func DefaultNewLoggerOptions() option.Option

Types

type Fields

type Fields = logrus.Fields

type Logger

type Logger = *logrus.Entry

func NewLogger

func NewLogger(opts ...NewLoggerOption) (Logger, error)

type NewLoggerOption

type NewLoggerOption = option.ApplyOption

Jump to

Keyboard shortcuts

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