Documentation ¶ Index ¶ type Logger func New(output interface{}) (logger Logger, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Logger ¶ type Logger interface { Log(fields map[string]interface{}) LogFromClientRequest(fields map[string]interface{}, req *http.Request) } func New ¶ func New(output interface{}) (logger Logger, err error) New creates a new Logger. The output variable sets the destination to which log data will be written. This can be either an io.Writer, or a string. With the latter, this is either one of "STDOUT" or "STDERR", or the path to the file to log to. Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.