go-utils: github.com/TheThingsNetwork/go-utils/log Index | Files | Directories

package log

import "github.com/TheThingsNetwork/go-utils/log"

Index

Package Files

log.go

Variables

var Noop = noopLogger{}

func Set Uses

func Set(log Interface)

Set sets the default logger

type Fields Uses

type Fields map[string]interface{}

Fields for logging

type Interface Uses

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 Uses

func Get() Interface

Get returns the defaultLogger logger

Directories

PathSynopsis
apex
filtered
grpc
logrus
namespaced
prometheus
test

Package log is imported by 66 packages. Updated 2019-08-24. Refresh now. Tools for package owners.