| 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: Sat, 17 Jan 2026 01:08:13 GMT
X-Served-By: cache-dfw-kdal2120086-DFW, cache-bom-vanm7210086-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768612093.740581,VS0,VE859
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
log-postgres: Structured logging solution (PostgreSQL back end)
log-postgres: Structured logging solution (PostgreSQL back end)
Deprecated
Downloads
- log-postgres-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.7, 0.7.0.1, 0.7.0.2, 0.7.1.0, 0.7.1.1, 0.7.1.3, 0.7.1.4, 0.7.1.5, 0.8.0.0, 0.8.0.1, 0.8.0.2, 0.8.1.0, 0.9.0.0, 0.9.0.1 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | aeson (>=1.0), aeson-pretty (>=0.8), base (>=4.13 && <5), base64-bytestring (>=1.0), bytestring (>=0.10), deepseq (>=1.4), hpqtypes (>=1.9.1.2), http-client (>=0.5), lifted-base (>=0.2), log-base (>=0.10 && <0.13), mtl (>=2.2), semigroups (>=0.16), split (>=0.2), text (>=1.2), text-show (>=3.7), time (>=1.6), unliftio-core (>=0.2), unordered-containers (>=0.2), vector (>=0.12) [details] |
| Tested with | ghc ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.4 || ==9.6.1 |
| 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 arybczak at 2023-03-14T18:42:10Z |
| Category | System |
| Home page | https://github.com/scrive/log |
| Source repo | head: git clone https://github.com/scrive/log.git |
| Distributions | NixOS:0.9.0.1 |
| Reverse Dependencies | 1 direct, 4 indirect [details] |
| Downloads | 5565 total (69 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2023-03-14 [all 1 reports] |
Readme for log-postgres-0.9.0.1
[back to package description]log
A set of libraries that provide a way to record structured log messages with multiple backends.
Supported backends:
- Standard output via
log-base. - Elasticsearch via
log-elasticsearch. - PostgreSQL via
log-postgres.
Example
A sample usage for logging to both standard output and Elasticsearch:
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Log
import Log.Backend.ElasticSearch
import Log.Backend.StandardOutput
main :: IO ()
main = do
let config = defaultElasticSearchConfig
{ esServer = "https://localhost:9200"
, esIndex = "logs"
}
withStdOutLogger $ \stdoutLogger -> do
withElasticSearchLogger config $ \esLogger -> do
runLogT "main" (stdoutLogger <> esLogger) defaultLogLevel $ do
logInfo_ "Hi there"