record

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Detailed debug information
	DEBUG = 100
	// Interesting events
	INFO = 200
	// Uncommon events
	NOTICE = 250
	// Exceptional occurrences that are not errors
	WARNING = 300
	// Runtime errors
	ERROR = 400
	// Critical conditions
	CRITICAL = 500
	// Action must be taken immediately
	ALERT = 550
	// Urgent alert.
	EMERGENCY = 600
)

Variables

This section is empty.

Functions

func GetLevels

func GetLevels() map[Level]string

GetLevels returns levels map

Types

type Level added in v0.2.0

type Level int

type Record

type Record struct {
	Level     Level
	Message   string
	LevelName string
	Channel   string
	Datetime  time.Time
	Formatted string
}

Jump to

Keyboard shortcuts

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