loglevel

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

LogLevel is the severity level of logging

const (
	Debug LogLevel = 0
	Info  LogLevel = iota
	Warn
	Error
	Fatal
)

These are the enum definitions of log types and presets

func FromString

func FromString(value string) LogLevel

FromString converts a string representation of LogLevel flag to its strongly typed instance

func (LogLevel) String

func (logLevel LogLevel) String() string

FromString converts a LogLevel flag instance to its string representation

Jump to

Keyboard shortcuts

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