diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-21 15:41:56 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-07-21 15:41:56 -0700 |
| commit | 452c41a75aa2f9036614d677fda3867221db959e (patch) | |
| tree | 98f2ee2ccd0858a120c5cd618641615f0fc5e026 /src/util/logger.ts | |
| download | mon.hatecomputers.club-452c41a75aa2f9036614d677fda3867221db959e.tar.gz mon.hatecomputers.club-452c41a75aa2f9036614d677fda3867221db959e.zip | |
add a simple email job
Diffstat (limited to 'src/util/logger.ts')
| -rw-r--r-- | src/util/logger.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/logger.ts b/src/util/logger.ts new file mode 100644 index 0000000..28e38f0 --- /dev/null +++ b/src/util/logger.ts @@ -0,0 +1,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), +}; |
