level

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 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 (
	None    Level = 0
	Default Level = Info | Error
	All     Level = Trace | Debug | Info | Error
)

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