Extends supervision strategy to define custom log levels #30267 (#30268)

* Adds logLevel in Directive
* Extends supervision logging documentation
* Adds sealed and marks as internal
This commit is contained in:
Nicolas Vollmar 2021-05-31 13:56:42 +02:00 committed by GitHub
parent 3986b1c3bb
commit 622d8af0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 78 additions and 29 deletions

View file

@ -119,6 +119,8 @@ By default the `SupervisorStrategy` logs failures unless they are escalated.
Escalated failures are supposed to be handled, and potentially logged, at a level
higher in the hierarchy.
Log levels can be controlled by providing a `Decider` and using the appropriate decision methods accepting a `LogLevel` on `SupervisorStrategy`.
You can mute the default logging of a `SupervisorStrategy` by setting
`loggingEnabled` to `false` when instantiating it. Customized logging
can be done inside the `Decider`. Note that the reference to the currently