Documentation ¶ Index ¶ func Init(cfg Config) func SetDefaults(app string) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(cfg Config) Init initializes the log package func SetDefaults ¶ func SetDefaults(app string) SetDefaults sets the default configurations for Viper Types ¶ type Config ¶ type Config struct { // Level is the level that the logger is going to log Level string // File is the file where the logger is going to write the logs File string } Config is the configuration of the log package Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.