Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var LdJSONFormatter = func() + var LevelDebug = func() + var LevelError = func() + var LevelInfo = func() + var TextFormatter = func() + func Configure(options ...Option) + func ContextWithLoggable(ctx context.Context, l Loggable) context.Context + type EventInProgress struct + func (eip *EventInProgress) Append(l Loggable) + func (eip *EventInProgress) Close() error + func (eip *EventInProgress) Done() + func (eip *EventInProgress) SetError(err error) + type EventLogger interface + Event func(ctx context.Context, event string, m ...Loggable) + EventBegin func(ctx context.Context, event string, m ...Loggable) *EventInProgress + func Logger(system string) EventLogger + type LogRotatorConfig struct + Filename string + MaxAgeDays int + MaxBackups int + MaxSizeMB int + type Loggable interface + Loggable func() map[string]interface{} + func Deferred(key string, f func() string) Loggable + func Pair(key string, l Loggable) Loggable + type LoggableF func() map[string]interface + func (l LoggableF) Loggable() map[string]interface{} + type LoggableMap map[string]interface + func (l LoggableMap) Loggable() map[string]interface{} + type Metadata map[string]interface + func (m Metadata) JsonString() (string, error) + func (m Metadata) Loggable() map[string]interface{} + func DeepMerge(b, a Metadata) Metadata + func MetadataFromContext(ctx context.Context) (Metadata, error) + func Metadatify(i interface{}) (Metadata, error) + func Uuid(key string) Metadata + type Option func() + func Output(w io.Writer) Option + func OutputRotatingLogFile(config LogRotatorConfig) Option + type PoliteJSONFormatter struct + func (f *PoliteJSONFormatter) Format(entry *logrus.Entry) ([]byte, error) + type StandardLogger interface + Critical func(args ...interface{}) + Criticalf func(format string, args ...interface{}) + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Notice func(args ...interface{}) + Noticef func(format string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(format string, args ...interface{}) + Warning func(args ...interface{}) + Warningf func(format string, args ...interface{})