跳转到内容
简体中文

LogMessagesOptions

此内容尚不支持你的语言。

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.

T

readonly optional formatter?: (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.

T

string


readonly optional level?: "debug" | "info"

Defined in: src/typed/Behaviors.ts:50