Documentation
¶
Overview ¶
Package common contains commonly used functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetStringField ¶ added in v0.5.0
SetStringField is a helper function to set a string field dynamically if present.
func SetUintField ¶ added in v0.5.0
SetUintField is a helper function to set a uint64 field dynamically if present.
Note that if the field already has a value, we don't want to override it.
func SetupLogger ¶
func SetupLogger()
SetupLogger sets up the logging for the application.
The log level can be defined as the string "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL" in the configuration file. E.g. "LogLevel": "INFO". Defaults to "DEBUG".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.