Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackageLoggerEntry ¶
type PackageLoggerEntry struct { logrus.Entry Trace func(args ...interface{}) Tracef func(args ...interface{}) TraceIdStr string // contains filtered or unexported fields }
func NewPackageLoggerEntry ¶
func NewPackageLoggerEntry(l *logrus.Logger, packageName string) *PackageLoggerEntry
func NewTracer ¶
func NewTracer(l *logrus.Logger) *PackageLoggerEntry
func (*PackageLoggerEntry) ContextLogger ¶
func (p *PackageLoggerEntry) ContextLogger() *PackageLoggerEntry
DecorateRuntimeContextForModule appends line, file and function context to the logger
func (*PackageLoggerEntry) FatalAndExit ¶
func (p *PackageLoggerEntry) FatalAndExit(err error)
Throws a fatal error and exits the program
func (*PackageLoggerEntry) TraceOff ¶
func (p *PackageLoggerEntry) TraceOff()
func (*PackageLoggerEntry) TraceOn ¶
func (p *PackageLoggerEntry) TraceOn()
Click to show internal directories.
Click to hide internal directories.