logrus

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 4 Imported by: 0

README

logrus location hook

log := logrus.New()
log.Hooks.Add(new(LocationHook))
log.Info("Test location")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationHook

type LocationHook struct{}

func (LocationHook) Fire

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

func (LocationHook) Levels

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

Jump to

Keyboard shortcuts

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