aboutsummaryrefslogtreecommitdiff
path: root/src/util/logger.ts
blob: 28e38f02b00b8a7a35152917102423337b61c02d (plain) (blame)
1
2
3
4
5
6
7
8
9
import type { IO } from "fp-ts/lib/IO";

export interface Logger {
  log: (message: string) => IO<void>;
}

export const ConsoleLogger: Logger = {
  log: (message: string) => () => console.log(message),
};