LogMessagesOptions
Ce contenu n’est pas encore disponible dans votre langue.
LogMessagesOptions<
T> =object
Defined in: src/typed/Behaviors.ts:49
Tuning for Behaviors.logMessages. A per-call parameter bag in the shape
of StrategyOptions rather than the XOptions builder triad: nothing here
is configurable from HOCON, and a fluent builder for two fields that are
chosen at the call site would be ceremony without a payoff.
level is deliberately narrower than Logger’s four levels. Logging every
message is a diagnostic, and a diagnostic that reports at warn or error
would poison exactly the signal an operator filters on.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”formatter?
Section titled “formatter?”
readonlyoptionalformatter?: (message) =>string
Defined in: src/typed/Behaviors.ts:56
Renders the whole log line, replacing the built-in received <kind>.
Must not throw; if it does, the built-in line is emitted instead so the
message is still recorded rather than the actor failing over a log call.
Parameters
Section titled “Parameters”message
Section titled “message”T
Returns
Section titled “Returns”string
level?
Section titled “level?”
readonlyoptionallevel?:"debug"|"info"
Defined in: src/typed/Behaviors.ts:50
