summaryrefslogtreecommitdiff
path: root/lumberjack.cabal
blob: f28546e3bc7c1d8be1c1c3ba7de00bf0a6e42b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cabal-version:       >=1.10
name:                lumberjack
version:             0.1.0.0
synopsis:            Trek through your code forest and make logs
description:         This is a logging facility.  Yes, there are many, and this is the one
                     with a beard, wearing flannel and boots, that gets the job done.  It's
                     not the fanciest, it doesn't have a cargo-van full of features.  This
                     logger is designed to be straightforward to use, provide a good set of
                     standard features, and be useable across a broad set of code.
                     .
                     * Logging is a monadic activity.  This activity is most often
                       performed in a monad stack with a MonadIO context to allow
                       writing to files.
                     . 
                     * The specific logging action implementaions are managed separately
                       from the actions of logging messages in the target code.  This
                       allows logging to be configurable and the manner of logging to
                       be specified at startup time without requiring changes in the
                       code from which log messages are being generated.
                     .
                     * The logging implementation code can use cofunctors to adjust
                       existing logging.
                     .
                     * Main code will typically retrieve the logging actions from a
                       Reader context in your monad stack.
                     .
                     * The prettyprinter package is used for formatting.
                     
homepage:            https://github.com/GaloisInc/lumberjack
bug-reports:         https://github.com/GaloisInc/lumberjack/issues
license:             ISC
license-file:        LICENSE
author:              Kevin Quick
maintainer:          kquick@galois.com
copyright:           2020, Galois Inc.
category:            Logging
build-type:          Simple
extra-source-files:  CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/GaloisInc/lumberjack.git

library
  hs-source-dirs:    src
  exposed-modules:   Lumberjack
  build-depends:     base >=4.12 && <4.16
                   , contravariant
                   , exceptions
                   , mtl
                   , prettyprinter
                   , prettyprinter-ansi-terminal
                   , text
                   , time
  default-language:  Haskell2010

executable example_log
  hs-source-dirs:   example
  main-is:          ExampleLog.hs
  default-language: Haskell2010
  build-depends:    base
                  , exceptions
                  , lumberjack
                  , mtl
                  , prettyprinter
                  , text