log-warper

Flexible, configurable, monadic and pretty logging

https://github.com/serokell/log-warper

Version on this page:1.3.1
LTS Haskell 11.22:1.8.11
Stackage Nightly 2018-03-12:1.8.10.1
Latest on Hackage:1.9.0

See all snapshots log-warper appears in

MIT licensed by @serokell
Maintained by Serokell
This version can be pinned in stack with:log-warper-1.3.1@sha256:b1a420a8c337daadfab8ece62fc137e4c025f0784105a410235256285ce3a0c7,5668

This package implements nice and featureful wrapper around hslogger library.

Changes

1.3.1

  • Fix minor bug with stdout severity.

1.3.0

  • Allow to use arbitrary text formatter function.

1.2.4

  • Add ability to specify time format for logs.
  • Some space leaks elimination:
    • The MemoryQueue has been partially reworked to get rid of the “inline” State manipulation;
    • Strings have been dropped almost everywhere in favour of Text;
    • A LogFormatter has been reworked to yield a IO Builder;
    • replaceVarM has been reworked to be pure and to work with builders rather than plain Text/Strings;
    • The pure logger has been reworked to use strict’s StateT instead of WriterT;
    • The pure logger have been polished to drop instances which required the UndecidableInstances pragma;
    • The Sized instance for Text has been reworked and multiplied by a constant factor of 16 (see below).

1.2.3

  • Now we create a directory for log files if it’s missing.

1.2.2

  • Fixed memory leak (PR #17).

1.2.1

  • Supports Unix paths in log configs even on Windows.

1.2.0

  • Uses universum-0.6.1.

1.1.4

  • Add CanLog and HasLoggerName instances for both strict and lazy State.

1.1.3

  • Add config parameter to print ThreadId optionally.
  • Boolean monoidal builders for LoggerConfig now set boolean parameter to default ≠ mempty parameter.