MCPcopy Index your code
hub / github.com/Effect-TS/effect / loggerWithConsoleError

Function loggerWithConsoleError

packages/effect/src/internal/fiberRuntime.ts:1477–1481  ·  view source on GitHub ↗
(self: Logger<M, O>)

Source from the content-addressed store, hash-verified

1475
1476/** @internal */
1477export const loggerWithConsoleError = <M, O>(self: Logger<M, O>): Logger<M, void> =>
1478 internalLogger.makeLogger((opts) => {
1479 const services = FiberRefs.getOrDefault(opts.context, defaultServices.currentServices)
1480 Context.get(services, consoleTag).unsafe.error(self.log(opts))
1481 })
1482
1483/** @internal */
1484export const defaultLogger: Logger<unknown, void> = globalValue(

Callers

nothing calls this directly

Calls 3

errorMethod · 0.65
getMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected