hook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHook_FileLog

func NewHook_FileLog(writer port.FileWriter) logrus.Hook

func NewHook_LogService

func NewHook_LogService(callback port.LogServiceCallBack) logrus.Hook

Types

type FileLog

type FileLog struct {
	// contains filtered or unexported fields
}

func (*FileLog) Fire

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

func (*FileLog) Levels

func (hook *FileLog) Levels() []logrus.Level

type LogService

type LogService struct {
	// contains filtered or unexported fields
}

func (*LogService) Fire

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

func (*LogService) Levels

func (hook *LogService) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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