Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( G = GetLogger L = logrus.NewEntry(logrus.StandardLogger()) )
Functions ¶
func GetLogger ¶
GetLogger retrieves the current logger from the context. If no logger is available, the default logger is returned.
func TraceLevelOnlyStack ¶ added in v0.13.0
func TraceLevelOnlyStack() string
TraceLevelOnlyStack returns a stack trace for the current goroutine only if trace level logs are enabled; otherwise it returns an empty string. This ensure we only pay the cost of generating a stack trace when the log entry will actually be emitted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.