logger

package
v0.0.0-...-f5c0a31 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 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 Log

type Log struct {
	*golog.Logger
	// contains filtered or unexported fields
}

Log represents Log implementation using golog.Logger

func NewLog

func NewLog(log *golog.Logger) *Log

NewLog creates new Log from golog.Logger

func (*Log) Close

func (l *Log) Close() error

Close closes logger if needed

func (*Log) SetOutputFile

func (l *Log) SetOutputFile(filename string) error

SetOutputFile sets output file for logger

type Logger

type Logger interface {
	Fatal(v ...any)
	Fatalf(format string, args ...any)

	Error(v ...any)
	Errorf(format string, args ...any)

	Warn(v ...any)
	Warnf(format string, args ...any)

	Info(v ...any)
	Infof(format string, args ...any)

	Debug(v ...any)
	Debugf(format string, args ...any)
}

Logger represents logger

Jump to

Keyboard shortcuts

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