log

package
v0.1.1-18-gd4c3523 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: BSD-3-Clause Imports: 1 Imported by: 5

Documentation

Index

Constants

View Source
const Format = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Trace(a ...interface{})
	Tracef(format string, a ...interface{})
	Debug(a ...interface{})
	Debugf(format string, a ...interface{})
	Info(a ...interface{})
	Infof(format string, a ...interface{})
	Warn(a ...interface{})
	Warnf(format string, a ...interface{})
	Warning(a ...interface{})
	Warningf(format string, a ...interface{})
	Error(a ...interface{})
	Errorf(format string, a ...interface{})
	Fatal(a ...interface{})
	Fatalf(format string, a ...interface{})
	SetOutput(w io.Writer)

	// Clone provides a semantic copy of the current instance of the Logger such
	// that it can be used independently but with the same configuration.  This
	// may useful for sub-processes.
	Clone() Logger

	// Output returns the io.Writer used in the Logger's underlying implementation
	Output() io.Writer

	// Level returns the current log level
	Level() string
}

Jump to

Keyboard shortcuts

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