Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsFromEnv ¶
FieldsFromEnv extracts log fields from environment variables. If an environment variable starts with LOG_FIELD_, the suffix is extracted and split on =. The first part is used for the name and the second for the value. For example, LOG_FIELD_foo=bar would result in a field named "foo" with the value "bar".
func FileLogger ¶
FileLogger builds a new logger which logs to the given path.
Types ¶
Click to show internal directories.
Click to hide internal directories.