loggers

package module
v0.0.0-...-3cba33c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 1 Imported by: 11

README

loggers

Build Status

Simple logging interface and implementations for various loggers.

Supported log targets

  • logrus, wrapper for sirupsen/logrus which implements Logger
  • nsq, logs to Nsq with fallback to other Logger
  • prefixwrapper, wraps any Logger interface messages with prefix

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	io.Writer

	Debugf(string, ...interface{})
	Printf(string, ...interface{})
	Errorf(string, ...interface{})
	Fatalf(string, ...interface{})

	Debug(...interface{})
	Print(...interface{})
	Error(...interface{})
	Fatal(...interface{})
}

Logger is a application level interface.

Directories

Path Synopsis
examples
nsq
logger
nsq

Jump to

Keyboard shortcuts

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