hook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package hook package hook

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func Get

func Get(level logrus.Level, path, appName string) *File

func (*File) Fire

func (h *File) Fire(entry *logrus.Entry) error

func (*File) Format

func (h *File) Format(entry *logrus.Entry) ([]byte, error)

func (*File) Levels

func (h *File) Levels() []logrus.Level

func (*File) SetReportCaller

func (h *File) SetReportCaller(reportCaller bool, f func(*runtime.Frame) (function string, file string))

Jump to

Keyboard shortcuts

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