clog

package
v0.0.0-...-88e8edf Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLogger

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

func NewConsoleLogger

func NewConsoleLogger(stdOut, stdErr io.Writer, scope *log.Scope) *ConsoleLogger

func NewDefaultLogger

func NewDefaultLogger() *ConsoleLogger

func (*ConsoleLogger) LogAndError

func (l *ConsoleLogger) LogAndError(v ...any)

func (*ConsoleLogger) LogAndErrorf

func (l *ConsoleLogger) LogAndErrorf(format string, a ...any)

func (*ConsoleLogger) LogAndFatal

func (l *ConsoleLogger) LogAndFatal(a ...any)

func (*ConsoleLogger) LogAndFatalf

func (l *ConsoleLogger) LogAndFatalf(format string, a ...any)

func (*ConsoleLogger) LogAndPrint

func (l *ConsoleLogger) LogAndPrint(v ...any)

func (*ConsoleLogger) LogAndPrintf

func (l *ConsoleLogger) LogAndPrintf(format string, a ...any)

func (*ConsoleLogger) Print

func (l *ConsoleLogger) Print(s string)

func (*ConsoleLogger) PrintErr

func (l *ConsoleLogger) PrintErr(s string)

type Logger

type Logger interface {
	LogAndPrint(v ...any)
	LogAndError(v ...any)
	LogAndFatal(v ...any)
	LogAndPrintf(format string, a ...any)
	LogAndErrorf(format string, a ...any)
	LogAndFatalf(format string, a ...any)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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