package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jun 11, 2017
License: GPL-2.0, GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Log logs a new error to the history
type Entry struct {
Type string `json:"type"`
Task string `json:"task"`
Event string `json:"event"`
Message string `json:"message"`
Time int64 `json:"time"`
}
Entry is a log entry in the log
Convert converts an error intro a log entry
NewError returns a new entry for logging
NewSuccess returns a new successful log entry
Log appends the entry to the log history
SetEvent bind an event to the given error
SetTask binds a task to the given error
History is a slice of entries
Get retrieved log newer than a specified time
Source Files
¶
Click to show internal directories.
Click to hide internal directories.