levels

package
v0.0.0-...-c5339c6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug   = 0
	Warning = 1
	Info    = 2
	Error   = 3
)

LogLevel constants

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

LogLevel represents a set log level, in the range 0-3 inclusive: Debug 0, Warning 1, Info 2, Error 3. Integers are used so that it makes including log levels simple using integer comparision.

func ParseLevelFromString

func ParseLevelFromString(s string) LogLevel

ParseLevelFromString uses regexp package to determine what `LogLevel` you would like to use. Useful for making configuration

Jump to

Keyboard shortcuts

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