loghook

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loghooker

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

Struct

func NewLoghooker

func NewLoghooker() *Loghooker

Public

func (*Loghooker) Fire

func (l *Loghooker) Fire(entry *logrus.Entry) error

func (*Loghooker) Levels

func (l *Loghooker) Levels() []logrus.Level

Public - Logrus

func (*Loghooker) Push

func (l *Loghooker) Push(entry *logrus.Entry) error

func (*Loghooker) Start

func (l *Loghooker) Start() error

func (*Loghooker) Stop

func (l *Loghooker) Stop() error

type WebsocketLogMessage

type WebsocketLogMessage struct {
	Time      string `json:"time"`
	Level     string `json:"level"`
	Component string `json:"component"`
	Message   string `json:"message"`
}

Jump to

Keyboard shortcuts

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