logger

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 4

README

logger-go

Go Reference Go Version Go Report

Golang logger interface and adapters. This interface is used in the Golang libraries of GraphMetrics. It also provides a few adapters for popular loggers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, metadata map[string]interface{})
	Info(msg string, metadata map[string]interface{})
	Warn(msg string, metadata map[string]interface{})
	Error(msg string, metadata map[string]interface{})
	WithOptions(...options.LoggerOption) Logger
}

func NewDefault

func NewDefault(debug bool) Logger

Directories

Path Synopsis
logrus module
zap module

Jump to

Keyboard shortcuts

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