Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyWriter ¶
PrettyWriter returns a ConsoleWriter which writes logs in a human-readable format.
Types ¶
type Logger ¶
type Logger interface { Trace(msg string, fields ...map[string]interface{}) Debug(msg string, fields ...map[string]interface{}) Info(msg string, fields ...map[string]interface{}) Warn(msg string, fields ...map[string]interface{}) Error(msg string, fields ...map[string]interface{}) }
Logger defines the interface for a logger.
type Option ¶
type Option func(*Options)
Option defines a function which sets an option on the Options struct.
func WithLogLevel ¶
WithLogLevel sets the log level on the Options struct.
func WithWriters ¶
WithWriter sets the writer on the Options struct.
Click to show internal directories.
Click to hide internal directories.