log

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRITICAL = 50
	ERROR    = 40
	WARNING  = 30
	INFO     = 20
	DEBUG    = 10
	NOTSET   = 0
)
View Source
const MAX_LOG_QLEN = 128
View Source
const QUEUE_SHUTDOWN_TIMEOUT = 500 * time.Millisecond

Variables

This section is empty.

Functions

This section is empty.

Types

type CondLogger

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

func NewCondLogger

func NewCondLogger(logger *log.Logger, verbosity int) *CondLogger

func (*CondLogger) Critical

func (cl *CondLogger) Critical(s string, v ...interface{}) error

func (*CondLogger) Debug

func (cl *CondLogger) Debug(s string, v ...interface{}) error

func (*CondLogger) Error

func (cl *CondLogger) Error(s string, v ...interface{}) error

func (*CondLogger) Info

func (cl *CondLogger) Info(s string, v ...interface{}) error

func (*CondLogger) Log

func (cl *CondLogger) Log(verb int, format string, v ...interface{}) error

func (*CondLogger) Warning

func (cl *CondLogger) Warning(s string, v ...interface{}) error

type LogWriter

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

func NewLogWriter

func NewLogWriter(writer io.Writer) *LogWriter

func (*LogWriter) Close

func (lw *LogWriter) Close()

func (*LogWriter) Write

func (lw *LogWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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