logger

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpProxyNoLogging = http.CanonicalHeaderKey("X-HTTP-PROXY-NO-LOGGING")
View Source
var NoVerboseLogger = New(false)

Functions

This section is empty.

Types

type ConsoleLogger

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

func New

func New(verboseMode bool) *ConsoleLogger

func (*ConsoleLogger) Log

func (l *ConsoleLogger) Log(message string)

func (*ConsoleLogger) LogF

func (l *ConsoleLogger) LogF(format string, a ...interface{})

func (*ConsoleLogger) PrintF

func (l *ConsoleLogger) PrintF(format string, a ...interface{})

func (*ConsoleLogger) PrintLn

func (l *ConsoleLogger) PrintLn(message string)

type Logger

type Logger interface {
	Log(message string)
	LogF(format string, a ...interface{})

	PrintF(format string, a ...interface{})
	PrintLn(message string)
}

Jump to

Keyboard shortcuts

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