hook

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogEntry

type LogEntry struct {
	Timestamp string                 `json:"timestamp"`
	Level     string                 `json:"level"`
	Message   string                 `json:"message"`
	Hostname  string                 `json:"hostname"`
	AppName   string                 `json:"app_name"`
	Token     string                 `json:"token"`
	Fields    map[string]interface{} `json:"fields,omitempty"`
}

type RingHook

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

func NewRingHook

func NewRingHook(params RingParams) (*RingHook, error)

func (*RingHook) Close

func (h *RingHook) Close()

func (*RingHook) Fire

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

func (*RingHook) Levels

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

type RingParams

type RingParams struct {
	Address   string
	Token     string
	AppName   string
	IgnoreDir string
}

Jump to

Keyboard shortcuts

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