Skip to content

l-adic/purescript-colog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-colog

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.

What it can do

  • 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.

Inspiration

A port of the Haskell co-log and co-log-core libraries, split the same way into colog-core and colog.

Example

examples/ puts it all together in one script:

spago run -p examples

About

port of haskell colog library to purescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors