blob: 05d9fd9b37972a7c7906de9b4bc223b5f21f47b7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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(`[${new Date().toUTCString()}] ` + message),
};
|