logs

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpenLogFile

func MustOpenLogFile(path string) *os.File

Opens a log file with the appropriate flag and mode.

Types

type Logger

type Logger interface {
	Log(s string)
}

type TextLogger

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

Logs lines of text with the following format:

"%s (%s) %q\n" with timestamp, source code location and log message between quotes.

func NewTextLogger

func NewTextLogger(writers ...io.Writer) *TextLogger

func (*TextLogger) Log

func (l *TextLogger) Log(s string)

Jump to

Keyboard shortcuts

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