Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Log is the logger used by dobi Log = log.New() )
Functions ¶
func ForTask ¶
func ForTask(repr LogRepresenter) *log.Entry
ForTask returns a logger for a task which implemented LogRepresenter. The logger has the task added as the `task` field.
Types ¶
type LogRepresenter ¶
type LogRepresenter interface {
Repr() string
}
LogRepresenter is an interface for objects that can format themselves for logging
Click to show internal directories.
Click to hide internal directories.