log

package
v0.0.0-...-0325488 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2020 License: AGPL-3.0 Imports: 3 Imported by: 6

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL