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

Function simple

packages/effect/src/internal/logger.ts:109–115  ·  view source on GitHub ↗
(log: (a: A) => B)

Source from the content-addressed store, hash-verified

107
108/** @internal */
109export const simple = <A, B>(log: (a: A) => B): Logger.Logger<A, B> => ({
110 [LoggerTypeId]: loggerVariance,
111 log: ({ message }) => log(message),
112 pipe() {
113 return pipeArguments(this, arguments)
114 }
115})
116
117/** @internal */
118export const succeed = <A>(value: A): Logger.Logger<unknown, A> => {

Callers 2

succeedFunction · 0.85
syncFunction · 0.85

Calls 1

logFunction · 0.70

Tested by

no test coverage detected