Versions in this module Expand all Collapse all v2 v2.0.1 Oct 21, 2019 Changes in this version + var Constructor = NewLog(FileDepth(2)) + var PrefixedStdLogger = Constructor.PrefixedLog(FileDepth(3)) + var StdLogger = Constructor.Log(FileDepth(3)) + func Debug(message interface{}, params ...interface{}) + func DebugContext(ctx context.Context, message interface{}, params ...interface{}) + func Error(message interface{}, params ...interface{}) + func ErrorContext(ctx context.Context, message interface{}, params ...interface{}) + func Fatal(message interface{}, params ...interface{}) + func FatalContext(ctx context.Context, message interface{}, params ...interface{}) + func Info(message interface{}, params ...interface{}) + func InfoContext(ctx context.Context, message interface{}, params ...interface{}) + func Trace(message interface{}, params ...interface{}) + func TraceContext(ctx context.Context, message interface{}, params ...interface{}) + func Warn(message interface{}, params ...interface{}) + func WarnContext(ctx context.Context, message interface{}, params ...interface{}) + func WithPrefix(p string, message interface{}) string + type Level string + const DEBUG + const ERROR + const FATAL + const INFO + const TRACE + const WARN + type Log interface + Log func(...Option) Logger + PrefixedLog func(...Option) PrefixedLogger + SimpleLog func() SimpleLogger + func NewLog(options ...Option) Log + type Logger interface + Debug func(message interface{}, params ...interface{}) + DebugContext func(ctx context.Context, message interface{}, params ...interface{}) + Error func(message interface{}, params ...interface{}) + ErrorContext func(ctx context.Context, message interface{}, params ...interface{}) + Fatal func(message interface{}, params ...interface{}) + FatalContext func(ctx context.Context, message interface{}, params ...interface{}) + Info func(message interface{}, params ...interface{}) + InfoContext func(ctx context.Context, message interface{}, params ...interface{}) + NewLog func(...Option) Logger + NewPrefixedLog func(opts ...Option) PrefixedLogger + Trace func(message interface{}, params ...interface{}) + TraceContext func(ctx context.Context, message interface{}, params ...interface{}) + Warn func(message interface{}, params ...interface{}) + WarnContext func(ctx context.Context, message interface{}, params ...interface{}) + func NewNoopLogger() Logger + type Option func(*logOptions) + func FileDepth(d int) Option + func Prefixed(prefix string) Option + func WithColors(enabled bool) Option + func WithFilePath(enabled bool) Option + func WithLevel(level Level) Option + func WithStdOut(w io.Writer) Option + type PrefixedLogger interface + Debug func(prefix string, message interface{}, params ...interface{}) + DebugContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + Error func(prefix string, message interface{}, params ...interface{}) + ErrorContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + Fatal func(prefix string, message interface{}, params ...interface{}) + FatalContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + Info func(prefix string, message interface{}, params ...interface{}) + InfoContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + NewLog func(...Option) Logger + NewPrefixedLog func(opts ...Option) PrefixedLogger + Trace func(prefix string, message interface{}, params ...interface{}) + TraceContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + Warn func(prefix string, message interface{}, params ...interface{}) + WarnContext func(ctx context.Context, prefix string, message interface{}, params ...interface{}) + func NewPrefixedNoopLogger() PrefixedLogger + type SimpleLogger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) Other modules containing this package github.com/pickme-go/log