Commit Graph

6 Commits

Author SHA1 Message Date
Jan de Muijnck-Hughes
ed6441ad3e Updates and Fixes
+ Added new logging functions that take an explicit logging level and not just a natural number.
2015-08-27 11:57:00 +01:00
Jan de Muijnck-Hughes
7a2de6d4df Updated tests for logger effect. 2015-08-26 21:39:07 +01:00
Jan de Muijnck-Hughes
2df4ef62dd Rewrote Default Logger and Simple Logger
+ The levels for the default logger are improved to better support levels.
+ Default logger has a more appopriate interface with functions defined
  for common levels such as `info`, `debug` et cetera
+ Simple Nat based logging levels has been expunged.
+ Logging information is put rather than printed.
2015-08-26 09:05:06 +01:00
Jan de Muijnck-Hughes
642254519c Updated Logging Effect.
+ Fixed namespace so default is called from module `Effect.Logging`
+ Reworked implementation of default logger to use a record as the
  underlying resource, and added new methods to initialise and
  change the logging levels and logging categories.
2015-08-26 09:03:47 +01:00
Jan de Muijnck-Hughes
ff5b2308fa Fixes to Logging effect 2015-07-05 14:43:53 +01:00
Jan de Muijnck-Hughes
59f7f9829f Effectful Logging.
Two logging effects with appropriate tests and documentation have been added.
These effects provide:

1. A Simple logger that provides logging in effectful functions based
   on numerical levels of verbosity.
2. A more advanced logger that adds categorisation of logging statments in
   addition to levels.
2015-07-05 14:43:53 +01:00