Documentation ¶
Overview ¶
Package logger provides abstractions over girgen's logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopLogger = noopLogger{}
NoopLogger is a logger that doesn't log anything. It is used as a placeholder to pass into functions that need logging.
Functions ¶
Types ¶
type Level ¶
type Level uint8
Level vaguely describes the importance of each log entry.
const ( // Debug describes logging information that wouldn't be useful for anything // except for during debugging. Debug Level = iota // Skip describes an event that is only used when something is skipped. The // reason for skipping should not be written here and should instead be in // Debug. Skip // Unusual describes an event that is unusual but is not fatal. Unusual // Error describes an event that is erroneous and will likely not produce a // valid output. Error )
type LineLogger ¶
type LineLogger interface {
Logln(Level, ...interface{})
}
LineLogger describes anything that can log itself.
Click to show internal directories.
Click to hide internal directories.