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().
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 Logf ¶ added in v0.10.1
func Logf(tag, detail string, args ...interface{})
Logf adds a formatted entry to the central logger.
func TimeOfLast ¶ added in v0.10.1
func TimeOfLast() int
TimeOfLast returns the timestamp in nanoseconds of the most recent log event.
func WriteRecent ¶ added in v0.7.1
WriteRecent returns only the entries added since the last call to CopyRecent.
Types ¶
Click to show internal directories.
Click to hide internal directories.