logging

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTranscoderLogFilePath

func GetTranscoderLogFilePath() string

GetTranscoderLogFilePath returns the logging path for the transcoder log output.

func Setup

func Setup(enableDebugOptions bool, enableVerboseLogging bool)

Setup configures our custom logging destinations.

Types

type OCLogger

type OCLogger struct {
	Entries  []logrus.Entry
	Warnings []logrus.Entry
	// contains filtered or unexported fields
}

OCLogger represents the owncast internal logging.

var Logger *OCLogger

Logger is the shared instance of the internal logger.

func (*OCLogger) AllEntries

func (l *OCLogger) AllEntries() []*logrus.Entry

AllEntries returns all entries that were logged.

func (*OCLogger) Fire

func (l *OCLogger) Fire(e *logger.Entry) error

Fire runs for every logging request.

func (*OCLogger) Levels

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

Levels specifies what log levels we care about.

func (*OCLogger) WarningEntries

func (l *OCLogger) WarningEntries() []*logrus.Entry

WarningEntries returns all warning or greater that were logged.

Jump to

Keyboard shortcuts

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