logger

package
v0.0.0-...-fdedbb8 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 0 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 interface {
	// Debugf writes debug messags
	Debugf(format string, a ...interface{})
	// WithServiceName overrides service name stored in Logger
	WithServiceName(service string) Logger
}

Logger represent aqb library logger. Library accepts customize logger by giving context.

type NoOpLogger

type NoOpLogger struct{}

NoOpLogger makes all input to waste.

func (NoOpLogger) Debugf

func (NoOpLogger) Debugf(_ string, _ ...interface{})

Debugf nothing output

func (*NoOpLogger) WithServiceName

func (s *NoOpLogger) WithServiceName(_ string) Logger

WithServiceName nothing changes

Jump to

Keyboard shortcuts

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