logger

package
v0.0.0-...-86f1c50 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 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 GenericLogger

type GenericLogger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

GenericLogger represents common interface for different loggers.

func SelectLogger

func SelectLogger(logger ...GenericLogger) GenericLogger

SelectLogger returns one logger from given.

type VoidLogger

type VoidLogger struct{}

VoidLogger represents nil implementation of GenericLogger.

func (*VoidLogger) Debug

func (l *VoidLogger) Debug(args ...interface{})

Debug void implementation.

func (*VoidLogger) Debugf

func (l *VoidLogger) Debugf(format string, args ...interface{})

Debugf void implementation.

func (*VoidLogger) Error

func (l *VoidLogger) Error(args ...interface{})

Error void implementation.

func (*VoidLogger) Errorf

func (l *VoidLogger) Errorf(format string, args ...interface{})

Errorf void implementation.

func (*VoidLogger) Info

func (l *VoidLogger) Info(args ...interface{})

Info void implementation.

func (*VoidLogger) Infof

func (l *VoidLogger) Infof(format string, args ...interface{})

Infof void implementation.

func (*VoidLogger) Warn

func (l *VoidLogger) Warn(args ...interface{})

Warn void implementation.

func (*VoidLogger) Warnf

func (l *VoidLogger) Warnf(format string, args ...interface{})

Warnf void implementation.

Jump to

Keyboard shortcuts

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