logger

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf config.Logger)

Types

type Fields

type Fields map[string]interface{}

func (Fields) Fields

func (f Fields) Fields() log.Fields

type Logger

type Logger struct {
	log.Interface
}

func Copy

func Copy(l log.Interface) *Logger

func Log

func Log() *Logger

func New

func New() *Logger

func WithFields

func WithFields(f Fields) *Logger

func (*Logger) Mount

func (l *Logger) Mount(fn func(*Logger))

func (*Logger) WithFields

func (l *Logger) WithFields(f log.Fielder) *Logger

Jump to

Keyboard shortcuts

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