log

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHook

type AppHook struct {
	Name string
}

func NewAppHook

func NewAppHook(name string) *AppHook

func (*AppHook) Fire

func (s *AppHook) Fire(entry *logrus.Entry) error

func (*AppHook) Levels

func (s *AppHook) Levels() []logrus.Level

type Logger

type Logger struct {
	*logrus.Logger
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Logger

type Option

type Option func(*Logger)

func WithLevel

func WithLevel(level uint32) Option

func WithLogPath

func WithLogPath(path string) Option

Jump to

Keyboard shortcuts

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