greetingworkeradapter

package
v0.0.0-...-fcddabd Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger wraps a logur logger and exposes it under a custom interface.

func NewLogger

func NewLogger(logger logur.Logger) *Logger

NewLogger returns a new Logger instance.

func NewNoopLogger

func NewNoopLogger() *Logger

NewNoopLogger returns a logger that discards all received log events.

func (*Logger) Debug

func (l *Logger) Debug(msg string, fields ...map[string]interface{})

Debug logs an info event.

func (*Logger) Info

func (l *Logger) Info(msg string, fields ...map[string]interface{})

Info logs an info event.

func (*Logger) WithFields

func (l *Logger) WithFields(fields map[string]interface{}) greetingworker.Logger

WithFields annotates a logger with some context.

Jump to

Keyboard shortcuts

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