MCPcopy Create free account
hub / github.com/Effect-TS/effect / isEnabled

Function isEnabled

packages/effect/src/LogLevel.ts:383–384  ·  view source on GitHub ↗
(self: LogLevel)

Source from the content-addressed store, hash-verified

381 * @since 4.0.0
382 */
383export const isEnabled = (self: LogLevel): Effect.Effect<boolean> =>
384 core.withFiber((fiber) => effect.succeed(!isGreaterThan(fiber.getRef(References.MinimumLogLevel), self)))

Callers

nothing calls this directly

Calls 3

isGreaterThanFunction · 0.85
getRefMethod · 0.80
succeedMethod · 0.45

Tested by

no test coverage detected