A small, composable logging library for PureScript. Loggers are values you build up and combine, so you can assemble exactly the logging you want from simple pieces.
- Send logs to several destinations at once (console, a file, …).
- Transform, filter, and route messages on their way out.
- Severity levels, with coloured or plain output.
- Log from anywhere without threading a logger through your code.
- Enrich messages with structured fields like timestamps.
- Time how long an operation takes — safely, even when it throws.
A port of the Haskell co-log and
co-log-core libraries, split the same
way into colog-core and colog.
examples/ puts it all together in one script:
spago run -p examples