pilosa: github.com/pilosa/pilosa/logger Index | Files

package logger

import "github.com/pilosa/pilosa/logger"


Package Files


func NewStandardLogger Uses

func NewStandardLogger(w io.Writer) *standardLogger

func NewVerboseLogger Uses

func NewVerboseLogger(w io.Writer) *verboseLogger

type CaptureLogger Uses

type CaptureLogger struct {
    Prints []string
    Debugs []string

CaptureLogger is a logger that stores all the print and debug messages it sees, useful for testing.

func NewCaptureLogger Uses

func NewCaptureLogger() *CaptureLogger

NewCaptureLogger yields a CaptureLogger.

func (*CaptureLogger) Debugf Uses

func (cl *CaptureLogger) Debugf(format string, v ...interface{})

Debugf formats a message and appends it to Debugs.

func (*CaptureLogger) Printf Uses

func (cl *CaptureLogger) Printf(format string, v ...interface{})

Printf formats a message and appends it to Prints.

type Logger Uses

type Logger interface {
    Printf(format string, v ...interface{})
    Debugf(format string, v ...interface{})

Logger represents an interface for a shared logger.

var NopLogger Logger = &nopLogger{}

NopLogger represents a Logger that doesn't do anything.

Package logger imports 3 packages (graph) and is imported by 13 packages. Updated 2019-04-28. Refresh now. Tools for package owners.