logging

package
v0.0.0-...-3ec0371 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoggerOrExit

func CreateLoggerOrExit(reporter *rprtr.Object) *logrus.Logger

CreateLoggerOrExit creates the logger instance or exits to the console noting the error on failure.

Types

type LoggerBuilder

type LoggerBuilder struct {
}

LoggerBuilder contains the information and logic needed to create the default loggers used by the project. Don't create instances of this type directly; use the NewLogger function instead.

func NewLogger

func NewLogger() *LoggerBuilder

NewLogger creates new builder that can then be used to configure and build an logger that uses the logging framework of the project.

func (*LoggerBuilder) Build

func (b *LoggerBuilder) Build() (result *logrus.Logger, err error)

Build uses the information stored in the builder to create a new logger.

Jump to

Keyboard shortcuts

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