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

Function loggerWithConsoleLog

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

Source from the content-addressed store, hash-verified

1446
1447/** @internal */
1448export const loggerWithConsoleLog = <M, O>(self: Logger<M, O>): Logger<M, void> =>
1449 internalLogger.makeLogger((opts) => {
1450 const services = FiberRefs.getOrDefault(opts.context, defaultServices.currentServices)
1451 Context.get(services, consoleTag).unsafe.log(self.log(opts))
1452 })
1453
1454/** @internal */
1455export const loggerWithLeveledLog = <M, O>(self: Logger<M, O>): Logger<M, void> =>

Callers 1

fiberRuntime.tsFile · 0.85

Calls 2

logMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected