logpkg

package
v0.0.0-...-244c41e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
)

func (LogLevel) String

func (ll LogLevel) String() string

type Logger

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

func NewLogger

func NewLogger(writer io.Writer, logLevel LogLevel) *Logger

func (*Logger) Debug

func (l *Logger) Debug(message string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(message string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(message string, args ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(message string, args ...interface{})

Jump to

Keyboard shortcuts

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