logger

package
v3.1.0-rc.1.0...-37f577c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logger implements various logging utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger grpclog.LoggerV2

Logger defines logging interface. TODO: add "Lvl(lvl int)" for clientv3 loggers. TODO: make this settable with "Set" method.

func NewDiscardLogger

func NewDiscardLogger() Logger

NewDiscardLogger returns a new Logger that discards everything except "fatal".

func NewPackageLogger

func NewPackageLogger(p *capnslog.PackageLogger) Logger

NewPackageLogger wraps "*capnslog.PackageLogger" that implements "Logger" interface.

For example:

var defaultLogger Logger
plog := capnslog.NewPackageLogger("github.com/coreos/etcd", "snapshot")
defaultLogger = NewPackageLogger(plog)

Jump to

Keyboard shortcuts

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