level

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Overview

Package level defines the supported logging levels

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level byte

Level enumerates different logging levels.

const (
	Trace Level = 1 << iota
	Debug
	Info
	Error
)
const All Level = Trace | Debug | Info | Error
const Default Level = Info | Error
const None Level = 0

func Verbosity added in v0.1.3

func Verbosity(v int) Level

Verbosity maps an integer verbosity level to appropriate Level. This maybe helpful for cmdline applications that need to provide a `-verbosity <int>` flag to control logging verbosity.

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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