log

package
v0.0.2-0...-0431bfe Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelLogger

type ChannelLogger struct {
	Channel chan logrus.Entry
	// contains filtered or unexported fields
}

func NewChannelLogger

func NewChannelLogger() *ChannelLogger

func (*ChannelLogger) Fire

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

A hook to be fired when logging

func (*ChannelLogger) IsSubscribing

func (l *ChannelLogger) IsSubscribing(subscribe bool)

Set if we subscribe or not

func (*ChannelLogger) Levels

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

Level accepted

func (*ChannelLogger) SetLevels

func (l *ChannelLogger) SetLevels(levels []logrus.Level)

Set acceptable levels

Jump to

Keyboard shortcuts

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