logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...any)

func DebugF

func DebugF(format string, v ...any)

func DefaultOutput

func DefaultOutput() *log.Logger

func Error

func Error(v ...any)

func ErrorF

func ErrorF(format string, v ...any)

func FileOutput

func FileOutput(name string) *log.Logger

func Info

func Info(v ...any)

func InfoF

func InfoF(format string, v ...any)

func LogAsFileOutput

func LogAsFileOutput(name ...string)

func Normal

func Normal(v ...any)

func NormalF

func NormalF(format string, v ...any)

func Panic

func Panic(v ...any)

func Print

func Print(v ...any)

func Printf

func Printf(format string, v ...any)

func SetOutput

func SetOutput(w io.Writer)

func SetPrefix

func SetPrefix(prefix ...string)

func Success

func Success(v ...any)

func SuccessF

func SuccessF(format string, v ...any)

func Warn

func Warn(v ...any)

func WarnF

func WarnF(format string, v ...any)

Types

type LogWriter

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

func (LogWriter) Write

func (lw LogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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