logging

package
v0.0.110 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelTag = "tag"
)

LabelTag Enumeration of Label.

Variables

This section is empty.

Functions

func Finalize

func Finalize()

Finalize finalizes the logger module.

func Initialize

func Initialize(logname string)

Initialize initializes the logging package.

func Stackdriver

func Stackdriver() output

Stackdriver returns the stackdriver output.

func Stdout

func Stdout() output

Stdout returns the stdout output.

Types

type Logger

type Logger interface {
	CloneLogger() Logger

	AppendOutput(output)

	SetLabel(label string, value string)

	Debug(format string, args ...interface{})
	Info(format string, args ...interface{})
	Notice(format string, args ...interface{})
	Warn(format string, args ...interface{})
	Error(format string, args ...interface{})
	Critical(format string, args ...interface{})
	// contains filtered or unexported methods
}

Logger defines the logger interface.

func NewLogger

func NewLogger(opt ...*loggerOpt) Logger

NewLogger returns a new logger.

func NewLoggerTag

func NewLoggerTag(tag string, opt ...*loggerOpt) Logger

NewLoggerTag returns a new logger.

Jump to

Keyboard shortcuts

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