| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 03:14:10 GMT
X-Served-By: cache-dfw-kdfw8210103-DFW, cache-bom-vanm7210057-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768706050.231343,VS0,VE384
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
log: Structured logging solution with multiple backends
[Skip to Readme]
log
log: Structured logging solution with multiple backends
A library that provides a way to record structured log messages with multiple backends.
Supported backends:
standard output
Elasticsearch
PostgreSQL
[Skip to Readme]
Modules
[Index]
Downloads
- log-0.9.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.4, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.5.6, 0.5.7, 0.6, 0.7, 0.8, 0.9.0.0, 0.9.0.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (<5), log-base (>=0.7.1.1 && <0.9), log-elasticsearch (>=0.9.0.1 && <0.10), log-postgres (>=0.7.0.1 && <0.9) [details] |
| Tested with | ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2 |
| License | BSD-3-Clause |
| Copyright | Scrive AB |
| Author | Scrive AB |
| Maintainer | Andrzej Rybczak <andrzej@rybczak.net>, Jonathan Jouty <jonathan@scrive.com>, Mikhail Glushenkov <mikhail@scrive.com>, Oleg Grenrus <oleg.grenrus@iki.fi> |
| Uploaded | by MikhailGlushenkov at 2017-06-20T16:22:37Z |
| Category | System |
| Home page | https://github.com/scrive/log |
| Source repo | head: git clone https://github.com/scrive/log.git |
| Distributions | |
| Reverse Dependencies | 3 direct, 1 indirect [details] |
| Downloads | 15950 total (76 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2017-06-20 [all 1 reports] |
Readme for log-0.9.0.1
[back to package description]log

A library that provides a way to record structured log messages with multiple back ends.
Supported back ends:
- Standard output
- Elasticsearch
- PostgreSQL
The log library provides Elasticsearch and PostgreSQL back ends. If
you only need one of those, use log-base and log-elasticsearch or
log-postgres.
Example
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Log
import Log.Backend.ElasticSearch.V5
import System.Random
main :: IO ()
main = do
let config = defaultElasticSearchConfig {
esServer = "https://localhost:9200",
esIndex = "logs",
esMapping = "log"
}
withElasticSearchLogger config randomIO $ \logger ->
runLogT "main" logger $ do
logTrace_ "foo"