log

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyslogFacilityPriority map[string]syslog.Priority

Functions

func NewSyslogHook

func NewSyslogHook(priority string, tag string) (*lSyslog.SyslogHook, error)

Types

type ContextHook

type ContextHook struct{}

ContextHook storing nothing but behavior

func (ContextHook) Fire

func (hook ContextHook) Fire(entry *logrus.Entry) error

Fire the log entry

func (ContextHook) Levels

func (hook ContextHook) Levels() []logrus.Level

Levels returns all log levels

type HexHook

type HexHook struct{}

func (HexHook) Fire

func (hook HexHook) Fire(entry *logrus.Entry) error

Fire the log entry

func (HexHook) Levels

func (hook HexHook) Levels() []logrus.Level

Levels returns all log levels

Jump to

Keyboard shortcuts

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