yet-another-logger-0.3.0: Yet Another Logger

CopyrightCopyright (c) 2014-2015 PivotCloud, Inc.
LicenseApache License, Version 2.0
MaintainerLars Kuhtz <lkuhtz@pivotmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

System.Logger.Backend.Handle

Contents

Description

 

Synopsis

Handle Configuration

pLoggerHandleConfig_ Source

Arguments

:: Text

prefix for the command line options.

-> Parser LoggerHandleConfig 

A version of pLoggerHandleConfig that takes a prefix for the command line option.

Since: 0.2

Backend Configuration

pHandleBackendConfig_ Source

Arguments

:: Text

prefix for this and all subordinate command line options.

-> MParser HandleBackendConfig 

A version of pLoggerHandleBackendConfig that takes a prefix for the command line option.

Since: 0.2

Backend Implementation

withHandleBackend_ Source

Arguments

:: (MonadIO m, MonadBaseControl IO m) 
=> (msg -> Text)

formatting function for the log message

-> HandleBackendConfig 
-> (LoggerBackend msg -> m α) 
-> m α 

A version of withHandleBackend that is generic in the type of the log message.

Since: 0.2.2

handleBackend Source

Arguments

:: Handle 
-> Bool

whether to use ANSI color escape codes

-> LoggerBackend Text 

handleBackend_ Source

Arguments

:: (msg -> Text)

formatting function for the log message

-> Handle 
-> Bool

whether to use ANSI color escape codes

-> LoggerBackend msg 

A version of handleBackend that is generic in the type of the log message.

Since: 0.2.2