logging

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	EnabledInfo    bool
	EnabledTracing string
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(stdout io.Writer, stderr io.Writer) *Logger

func (*Logger) Debug

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

func (*Logger) EnableInfo

func (l *Logger) EnableInfo()

func (*Logger) EnableTracing

func (l *Logger) EnableTracing(traces string)

func (*Logger) Error

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

func (*Logger) Info

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

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer)

func (*Logger) SetSyslogOutput

func (l *Logger) SetSyslogOutput(w io.Writer)

func (*Logger) Stderr

func (l *Logger) Stderr(format string, args ...interface{})

func (*Logger) Stdout

func (l *Logger) Stdout(format string, args ...interface{})

func (*Logger) Trace

func (l *Logger) Trace(subsystem string, format string, args ...interface{})

func (*Logger) Warn

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

Jump to

Keyboard shortcuts

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