logging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trace

func Trace(traceType TraceType)

Trace prints the calling function file, name and line.

Types

type PrometheusHook added in v0.1.1

type PrometheusHook struct {
}

func (*PrometheusHook) Fire added in v0.1.1

func (*PrometheusHook) Fire(*logrus.Entry) error

func (*PrometheusHook) Levels added in v0.1.1

func (*PrometheusHook) Levels() []logrus.Level

type TraceType

type TraceType int

TraceType explains if the trace is entering a function, is exciting a function or if its still in a function.

ENUM( entering inside exiting )

const (
	// TraceTypeEntering is a TraceType of type Entering
	TraceTypeEntering TraceType = iota
	// TraceTypeInside is a TraceType of type Inside
	TraceTypeInside
	// TraceTypeExiting is a TraceType of type Exiting
	TraceTypeExiting
)

func ParseTraceType

func ParseTraceType(name string) (TraceType, error)

ParseTraceType attempts to convert a string to a TraceType

func (TraceType) String

func (x TraceType) String() string

String implements the Stringer interface.

Jump to

Keyboard shortcuts

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