Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = log.New(ioutil.Discard, "", 0)

    Discard is the discard logger.

    View Source
    var Logger = NewStdErr()

      Logger is the logger we use.

      Functions

      func LogAction

      func LogAction(context string, action string)

        LogAction logs The action with a tag.

        func LogError

        func LogError(context string, action string, err error)

          LogError logs the error as a string.

          func LogTarget

          func LogTarget(context, action string, target interface{})

            LogTarget logs The action with a tag.

            Types

            type Logging

            type Logging interface {
            	config.Provider
            
            	// Printf logs a formatted log line.
            	Printf(format string, v ...interface{})
            }

              Logging represents a logging contract.

              func NewStdErr

              func NewStdErr() Logging

                NewStdErr creates a new default stderr logger.

                Source Files