Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( G = GetLogger L = logrus.NewEntry(logrus.StandardLogger()) )
Functions ¶
func EnableLogWithTraceID ¶ added in v0.10.0
func EnableLogWithTraceID(b bool)
Types ¶
type LazyStackTrace ¶ added in v0.12.0
type LazyStackTrace struct{}
LazyStackTrace lets you include a stack trace as a field's value in a log but only call it when the log level is actually enabled.
func (LazyStackTrace) MarshalText ¶ added in v0.12.0
func (LazyStackTrace) MarshalText() ([]byte, error)
func (LazyStackTrace) String ¶ added in v0.12.0
func (LazyStackTrace) String() string
Click to show internal directories.
Click to hide internal directories.