Documentation ¶ Index ¶ Variables func Init(cfg *Config) type Config Constants ¶ This section is empty. Variables ¶ View Source var ( Log = log.New() ) Functions ¶ func Init ¶ func Init(cfg *Config) Initialize a new logger. You can set a different logging level by using the logging.logLevel YAML key or using the LOG_LEVEL env variable. By default the logging level is set to "info" but it can be changed to either "warn" or "debug" Types ¶ type Config ¶ type Config struct { LogLevel string `mapstructure:"logLevel"` } Source Files ¶ View all Source files logging.go Click to show internal directories. Click to hide internal directories.