Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // G is an alias for GetLogger G = GetLogger // L is an alias for the standard logger L = logrus.NewEntry(logrus.StandardLogger()) )
Functions ¶
func GetLogger ¶
returns the current logger from the context If logger is available, the default logger is returned
func GetModulePath ¶
returns the module path for the provided context. If no module is set am empty string is returned
func WithLogger ¶
returns a new context with the provided logger Use in combination with logger.WithField(s) for great effect
func WithModlue ¶
adds the module to the context, appending it with a slash if a module already exists. A moudle is just an roughly correlated defined by the call tree for given context
Modules represent the call path. If the new module and last modlue and last modlue are the same, a new modlue entry will noe be created. If the new modlue and old older modlue are the same bur separated bu other modlues, the cycle will be represented the module path
Types ¶
This section is empty.