logger

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger has implementation of loggers for mtglib.Logger interface.

Please see a description of that interface to get some agreements which are used by mtglib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopLogger

func NewNoopLogger() mtglib.Logger

NewNoopLogger returns a logger which discards all events.

func NewZeroLogger

func NewZeroLogger(log zerolog.Logger) mtglib.Logger

NewZeroLogger returns a logger which is using rs/zerolog library.

Types

type StdLikeLogger

type StdLikeLogger interface {
	Printf(format string, args ...interface{})
}

StdLikeLogger is an interface which is close to log.Logger. This is commonly used by many 3pp tools. While mtglib itself does not need it, it is always a good idea to support it and have a transient end to end logging.

Jump to

Keyboard shortcuts

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