Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RFC3339NanoFixed is time.RFC3339Nano with nanoseconds padded using zeros to // ensure the formatted time is always the same number of characters. RFC3339NanoFixed = "2006-01-02T15:04:05.000000000Z07:00" // TextFormat represents the text logging format TextFormat = "text" // JSONFormat represents the JSON logging format JSONFormat = "json" // TraceLevel level. TraceLevel = logrus.TraceLevel // DebugLevel level. DebugLevel = logrus.DebugLevel // InfoLevel level. InfoLevel = logrus.InfoLevel )
Variables ¶
View Source
var ( // G is an alias for GetLogger. // // We may want to define this locally to a package to get package tagged log // messages. G = GetLogger // L is an alias for the standard logger. 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.
Types ¶
Click to show internal directories.
Click to hide internal directories.