UNPKG

effect

Version:

The missing standard library for TypeScript, for writing production-grade software.

25 lines (23 loc) 789 B
import * as Cause from "../Cause.js" import { dual } from "../Function.js" import * as HashMap from "../HashMap.js" import * as List from "../List.js" import type * as Logger from "../Logger.js" import * as core from "./core.js" import * as fiberId_ from "./fiberId.js" import * as fiberRefs from "./fiberRefs.js" /** @internal */ export const test = dual< <Message>(input: Message) => <Output>(self: Logger.Logger<Message, Output>) => Output, <Message, Output>(self: Logger.Logger<Message, Output>, input: Message) => Output >(2, (self, input) => self.log({ fiberId: fiberId_.none, logLevel: core.logLevelInfo, message: input, cause: Cause.empty, context: fiberRefs.empty(), spans: List.empty(), annotations: HashMap.empty(), date: new Date() }))