log

package
v0.0.0-...-b349366 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 0 Imported by: 298

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Noop = noopLogger{}

Functions

func Set

func Set(log Interface)

Set sets the default logger

Types

type Fields

type Fields map[string]interface{}

Fields for logging

type Interface

type Interface interface {
	Debug(msg string)
	Info(msg string)
	Warn(msg string)
	Error(msg string)
	Fatal(msg string)
	Debugf(msg string, v ...interface{})
	Infof(msg string, v ...interface{})
	Warnf(msg string, v ...interface{})
	Errorf(msg string, v ...interface{})
	Fatalf(msg string, v ...interface{})
	WithField(string, interface{}) Interface
	WithFields(Fields) Interface
	WithError(error) Interface
}

Interface for logging in TTN

func Get

func Get() Interface

Get returns the defaultLogger logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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