stdlog

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StandardFormatter

func StandardFormatter(entry *log.Entry, senderSpacing int, severitySpacing int) string

Types

type StdLogBackend

type StdLogBackend struct {
	log.CommonBackend
	Formatter func(entry *log.Entry, senderSpacing int, severitySpacing int) string
	// contains filtered or unexported fields
}

It is recommended to use your own formatter and do SetFlags(0) on stdlog

func (*StdLogBackend) NotifyAboutSender

func (loggy *StdLogBackend) NotifyAboutSender(sender string)

func (*StdLogBackend) NotifyAboutSeverity

func (loggy *StdLogBackend) NotifyAboutSeverity(severity *log.Severity)

func (*StdLogBackend) Shutdown

func (loggy *StdLogBackend) Shutdown()

func (*StdLogBackend) Write

func (loggy *StdLogBackend) Write(entry *log.Entry) error

Jump to

Keyboard shortcuts

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