liftbridge: github.com/liftbridge-io/liftbridge/server/logger Index | Files

package logger

import "github.com/liftbridge-io/liftbridge/server/logger"

Index

Package Files

logger.go

type Logger Uses

type Logger interface {
    Fatalf(string, ...interface{})
    Debugf(string, ...interface{})
    Errorf(string, ...interface{})
    Infof(string, ...interface{})
    Warnf(string, ...interface{})
    Debug(...interface{})
    Warn(...interface{})
    Info(...interface{})
    Fatal(...interface{})
    Writer() io.Writer
    SetWriter(io.Writer)
}

Logger interface is used to allow tests to inject custom loggers.

func NewLogger Uses

func NewLogger(level uint32) Logger

NewLogger returns a new Logger instance backed by Logrus.

Package logger imports 2 packages (graph) and is imported by 4 packages. Updated 2019-08-20. Refresh now. Tools for package owners.