api

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG   = iota
	INFO    = iota
	SUCCESS = iota
	WARN    = iota
	ERROR   = iota
)

Variables

View Source
var LogMessages = map[string]map[string]string{}/* 107 elements not displayed */

Functions

This section is empty.

Types

type LogConsumer

type LogConsumer interface {
	Consume(*LogEntry) (string, error)
}

type LogEntry

type LogEntry struct {
	Message      string
	SectionStack []string
	Release      string
	Collapse     bool
	LogLevel     LogLevel
	Timestamp    time.Time
	LogKey       string
	LogValues    map[string]string
}

type LogLevel

type LogLevel int

func StringToLogLevel

func StringToLogLevel(logLevel string) LogLevel

func (LogLevel) String

func (l LogLevel) String() string

type Logger

type Logger interface {
	Log(string, map[string]string)
	PushSection(string)
	PopSection()
	PushRelease(string)
	PopRelease()
	SetLogLevel(string)
}

Jump to

Keyboard shortcuts

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