salvia-extras-1.0.0: Collection of non-fundamental handlers for the Salvia web server.

Network.Salvia.Handler.ColorLog

Synopsis

Documentation

newtype Counter Source

Constructors

Counter 

Fields

unCounter :: Integer
 

hCounter :: PayloadM p Counter m => m CounterSource

This handler simply increases the request counter variable.

hColorLog :: (AddressM' m, MonadIO m, HttpM' m) => Handle -> m ()Source

A simple logger that prints a summery of the request information to the specified file handle.

hColorLogWithCounter :: (PayloadM p Counter m, AddressM' m, MonadIO m, HttpM' m) => Handle -> m ()Source

Like hLog but also prints the request count since server startup.