logger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLogLevel = "INFO"

Variables

This section is empty.

Functions

func CheckFatal

func CheckFatal(message string, err error)

func Configure

func Configure(out io.WriteCloser, prefix, level string)

func Debugf added in v0.4.0

func Debugf(format string, v ...interface{})

func Errorf added in v0.4.0

func Errorf(format string, v ...interface{})

func Fatalf added in v0.4.0

func Fatalf(format string, v ...interface{})

func HTTPDebug added in v0.4.0

func HTTPDebug(r *http.Request, status int)

func HTTPDebugWithDuration added in v0.4.0

func HTTPDebugWithDuration(r *http.Request, status int, duration time.Duration)

func HTTPError added in v0.4.0

func HTTPError(r *http.Request, status int)

func HTTPInfo added in v0.4.0

func HTTPInfo(r *http.Request, status int)

func HTTPWarn added in v0.4.0

func HTTPWarn(r *http.Request, status int)

func Infof added in v0.4.0

func Infof(format string, v ...interface{})

func New added in v0.5.1

func New(out io.WriteCloser, prefix, level string)

func NewLogErrorWriter

func NewLogErrorWriter(prefix string) io.Writer

func NewLogInfoWriter

func NewLogInfoWriter(prefix string) io.Writer

func SignalOnWrite

func SignalOnWrite(signal chan<- int, wrapped io.Writer) io.Writer

func Warnf added in v0.4.0

func Warnf(format string, v ...interface{})

Types

type WriterFunc

type WriterFunc func([]byte) (int, error)

func (WriterFunc) Write

func (w WriterFunc) 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