package log
import "github.com/docker/swarmkit/log"
Index ¶
- Variables
- func GetLogger(ctx context.Context) *logrus.Entry
- func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context
Variables ¶
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 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.
func WithLogger ¶
WithLogger returns a new context with the provided logger. Use in combination with logger.WithField(s) for great effect.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Jul 26, 2016
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.