uber

package
v0.0.0-...-724c7a8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: EUPL-1.2 Imports: 8 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 is an adapter that allows to log using Uber's Zap wherever a Logger interface is expected.

func NewLogger

func NewLogger() (*Logger, error)

NewLogger initialises a Zap logger, either by locating and loading a configuration fil from disk, or by assuming the sane defaults for a production environment.

func (*Logger) Debug

func (l *Logger) Debug(format string, args ...interface{})

Debug logs a message at LevelDebug level.

func (*Logger) Error

func (l *Logger) Error(format string, args ...interface{})

Error logs a message at LevelError level.

func (*Logger) Info

func (l *Logger) Info(format string, args ...interface{})

Info logs a message at LevelInfo level.

func (*Logger) Trace

func (l *Logger) Trace(format string, args ...interface{})

Trace logs a message at LevelTrace level.

func (*Logger) Warn

func (l *Logger) Warn(format string, args ...interface{})

Warn logs a message at LevelWarn level.

Jump to

Keyboard shortcuts

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