logger

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: GPL-3.0, GPL-3.0 Imports: 2 Imported by: 1

Documentation

Overview

Package logger is the central log repository for gopher2600. There is a single log for the entire application and can be accessed through the package level functions, principally Log() and Write().

Log entries can be grouped together with the tag argument in the Log() command.

The logger package should not be used inside any init() function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear all entries from central logger

func Log

func Log(tag, detail string)

Log adds an entry to the central logger

func Tail

func Tail(output io.Writer, number int)

Write the last N entries to io.Writer

func Write

func Write(output io.Writer) bool

Write contents of central logger to io.Writer

Types

type Entry

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

Jump to

Keyboard shortcuts

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