log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package log provides a way to use the go-kit/log package without having to deal with their very-opiniated/crazy choice of returning an error all the time: https://github.com/go-kit/kit/issues/164

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCaller adds a "caller" property
	DefaultCaller = gklog.Caller(4)
	// DefaultTimestampUTC adds a "ts" property
	DefaultTimestampUTC = gklog.DefaultTimestampUTC
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Log(keyvals ...interface{})
	Debug(keyvals ...interface{})
	Info(keyvals ...interface{})
	Warn(keyvals ...interface{})
	Error(keyvals ...interface{})
	With(keyvals ...interface{}) Logger
}

Logger interface

func NewGKLogger

func NewGKLogger(logger gklog.Logger) Logger

NewGKLogger creates a logger based on go-kit logs

func NewNopGKLogger

func NewNopGKLogger() Logger

NewNopGKLogger instantiates go-kit logger

Jump to

Keyboard shortcuts

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