log

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntryHandler

func AddEntryHandler(fn func(Entry))

AddEntryHandler adds a handler, which will run asynchronously.

func Error

func Error(err error)

func Info

func Info(err error)

func Println

func Println(v ...interface{})

func Printlnf

func Printlnf(f string, v ...interface{})

func Warn

func Warn(err error)

Warn calls Info().

func Write

func Write(msg string)

func WriteEntry

func WriteEntry(entry Entry)

Types

type Entry

type Entry struct {
	Time time.Time
	Msg  string
}

func (Entry) String

func (entry Entry) String() string

Jump to

Keyboard shortcuts

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