Skip to content

routier-collection


routier-collection / core/src / isLogLevelEnabled

Function: isLogLevelEnabled()

isLogLevelEnabled(at): boolean

Defined in: core/src/utilities/logger.ts:125

Whether a message at this level would be emitted.

For the rare call site whose arguments are expensive to build — a serialization, a deep clone, a join over a large collection. An ordinary payload object is not worth guarding; see the measurement in the header.

Parameters

at

"error" | "silent" | "warn" | "info" | "debug"

Returns

boolean

Released under the MIT License.