adapters

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfoTraceLoggerAsLog15Handler

func InfoTraceLoggerAsLog15Handler(logger loggers.InfoTraceLogger) log15.Handler

func Log15HandlerAsKitLogger

func Log15HandlerAsKitLogger(handler log15.Handler) kitlog.Logger

func Log15LvlFromString

func Log15LvlFromString(level string) log15.Lvl

Collapse our weak notion of leveling and log15's into a log15.Lvl

func LogLineToRecord

func LogLineToRecord(keyvals ...interface{}) *log15.Record

Convert a go-kit log line (i.e. keyvals... interface{}) into a log15 record This allows us to use log15 output handlers

func RecordToLogLine

func RecordToLogLine(record *log15.Record) []interface{}

Convert a log15 record to a go-kit log line (i.e. keyvals... interface{}) This allows us to capture output from dependencies using log15

Types

This section is empty.

Jump to

Keyboard shortcuts

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