logging

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package logging manages setup of common logging interfaces and settings.

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Functions

func SetupLogging

func SetupLogging()

Types

type LogrusFileHook

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

func NewLogrusFileHook

func NewLogrusFileHook(file string, flag int, chmod os.FileMode) (*LogrusFileHook, error)

func (*LogrusFileHook) Fire

func (hook *LogrusFileHook) Fire(entry *logrus.Entry) error

func (*LogrusFileHook) Levels

func (hook *LogrusFileHook) Levels() []logrus.Level

type StandardHook

type StandardHook struct {
	Writer    io.Writer
	LogLevels []logrus.Level
	Formatter *logrus.TextFormatter
}

func (*StandardHook) Fire

func (hook *StandardHook) Fire(entry *logrus.Entry) error

func (*StandardHook) Levels

func (hook *StandardHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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