Popularity
9.0
Stable
Activity
2.7
Declining
30
32
7

Monthly Downloads: 49
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: System     Log    
Latest version: v0.9.0.0

log alternatives and similar packages

Based on the "System" category.
Alternatively, view log alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of log or a related project?

Add another 'System' Package

README

log Hackage version Build Status

A set of libraries that provide a way to record structured log messages with multiple back ends.

Supported back ends:

  • Standard output
  • Elasticsearch
  • PostgreSQL

The log-base library provides only the basic scaffolding and the stdout back end. Additional back ends are provided by log-elasticsearch and log-postgres.

Example

{-# LANGUAGE OverloadedStrings #-}

module Main where

import Log
import Log.Backend.ElasticSearch

main :: IO ()
main = do
  let config = defaultElasticSearchConfig {
        esServer  = "http://localhost:9200",
        esIndex   = "logs",
        esMapping = "log"
        }
  withElasticSearchLogger config $ \logger ->
    runLogT "main" logger $ do
      logTrace_ "foo"