Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger func(errorMessage string) // don't touch it, if we add functions on Logger type,
Logger is a simple interface which is used to log critical messages (aka panics).
func NewDev ¶
func NewDev() Logger
NewDev returns a new Logger which prints the critical messages to the console.
Example ¶
logger := NewDev() logger("It should print to the console")
Output: It should print to the console
func NewFromWriter ¶
NewFromWriter returns a new Logger which writes to the writer.
Click to show internal directories.
Click to hide internal directories.