Holds context information about what should be logged.
Marks objects that have a flow id.
Context information that should be logged.
Context information that should be logged.
The play request id that is unique for a request.
The flow id that is used to identify a flow over system boundaries.
The request headers the request has. The request body is not forwarded here since you should do that explicitly if you need it.
The user that issued the request (if any).
Replaces the default play logger.
Replaces the default play logger. Has access functionality that is equal to the play logger, and uses that logger underneath. However, it additionally puts context information in the log output, like flow ids. It does not implement
LoggerLike
though, since we change the function declarations.
Giving an implicit context is needed - you can't simply omit the implicit parameter. This is for a reason: It lets the compiler check if you have enough information to write a logging statement with flow ids, or not - instead of seeing this on the live system when it is too late. If you really do not want to have a context, you can supply the case object
NoContextAvailable
NoContextAvailable }}}
LoggerLike }}} function declarations.
Giving an implicit context is needed - you can't simply omit the implicit parameter. This is for a reason: It lets the compiler check if you have enough information to write a logging statement with flow ids, or not - instead of seeing this on the live system when it is too late. If you really do not want to have a context, you can supply the case object
NoContextAvailable
NoContextAvailable }}}
The default value when no context information is available - in this case, context information logging is omitted.
The default value when no context information is available - in this case, context information logging is omitted. Must be given explicitly to enforce thinking about what you want to achieve, instead of forgetting to log flow ids and only see it on the live system when it is too late.
Marks objects that have a flow id. Comes with an extractor to get the flow id if needed.