Modulelog-base-0.12.0.1Haskell2010
Log
Structured logging solution with multiple backends.
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Log
import Log.Backend.ElasticSearch
import System.Random
main :: IO ()
main = do
let config = Log.Backend.ElasticSearch.ElasticSearchConfig {
esServer = "http://localhost:9200",
esIndex = "logs",
esMapping = "log"
}
Log.Backend.ElasticSearch.withElasticSearchLogger config randomIO $ \logger -> do
runLogT "main" logger defaultLogLevel $ do
logTrace_ "foo"
- 1 value
- Packagelog-base-0.12.0.1
- Exports2
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceLog.hs
Documentation
0 declarationsMonadLog type class of monads with logging capabilities.
module Log.Class
LogMessage and LogLevel data definitions.
module Log.Data
module Log.Logger
LogT monad transformer that adds logging capabilities to the underlying monad.
module Log.Monad