config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package config contains GoAbU's global configuration.

Index

Constants

View Source
const (
	LogDebug = iota - 1
	LogInfo
	LogWarning
	LogError
	LogFatal
)

Variables

View Source
var Production = os.Getenv("GOABU_DEBUG") != "1"
View Source
var TestsLogConfig = LogConfig{
	Encoding: "console",
	Level:    LogDebug,
}

Functions

func LogPreset

func LogPreset(encoding string) interface{}

Types

type LogConfig

type LogConfig struct {
	// "console" == "" or "json"
	Encoding string
	Level    int
}

Jump to

Keyboard shortcuts

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