promlog

package
v0.0.0-...-38c53a9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package promlog defines standardised ways to initialize Go kit loggers across Prometheus components. It should typically only ever be imported by main packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(al AllowedLevel) log.Logger

New returns a new leveled oklog logger in the logfmt format. Each logged line will be annotated with a timestamp. The output always goes to stderr.

Types

type AllowedLevel

type AllowedLevel struct {
	// contains filtered or unexported fields
}

AllowedLevel is a settable identifier for the minimum level a log entry must be have.

func (*AllowedLevel) Set

func (l *AllowedLevel) Set(s string) error

Set updates the value of the allowed level.

func (*AllowedLevel) String

func (l *AllowedLevel) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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