logging

package
v99.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// VerboseLogLevel defines verbose log level as 10
	VerboseLogLevel glog.Level = 10
)

Variables

This section is empty.

Functions

func GetEmitableSpan

func GetEmitableSpan(ctx context.Context, metricName string) *trace.Span

GetEmitableSpan starts and returns a trace.Span with a name that is used by the ExportSpan method to emit the span.

func InitializeLogger

func InitializeLogger(logVerbose bool)

InitializeLogger initializes the base logger

func InitializeMetricExporter

func InitializeMetricExporter(context string)

InitializeMetricExporter initializes the metric exporter logger

Types

type FormatLogger

type FormatLogger func(template string, args ...interface{})

FormatLogger is a printf style function for logging in tests.

Jump to

Keyboard shortcuts

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