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

Function simple

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

Source from the content-addressed store, hash-verified

106
107/** @internal */
108export const simple = <A, B>(log: (a: A) => B): Logger.Logger<A, B> => ({
109 [LoggerTypeId]: loggerVariance,
110 log: ({ message }) => log(message),
111 pipe() {
112 return pipeArguments(this, arguments)
113 }
114})
115
116/** @internal */
117export 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