Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Application = struct { Host string `json:"host"` LogLevel string `json:"logLevel"` LogFormat string `json:"logFormat"` Serve Serve `json:"serve"` }{ Host: "0.0.0.0:8080", LogLevel: "info", LogFormat: "common", }
Application is the configuration for the application. Holds flags, parameters.
View Source
var LogWriter = zerolog.ConsoleWriter{ Out: os.Stderr, FormatTimestamp: func(i interface{}) string { parse, _ := time.Parse(time.RFC3339, i.(string)) return parse.Format("2006-01-02 15:04:05") }, }
LogWriter is a zerolog writer that writes to stdout.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.