Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pbrisbin/yesod-statistics
A tool for logging requests and aggregating/viewing the logged data
https://github.com/pbrisbin/yesod-statistics
Last synced: about 2 months ago
JSON representation
A tool for logging requests and aggregating/viewing the logged data
- Host: GitHub
- URL: https://github.com/pbrisbin/yesod-statistics
- Owner: pbrisbin
- License: bsd-3-clause
- Created: 2011-01-17T22:13:41.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-02T21:09:36.000Z (almost 14 years ago)
- Last Synced: 2024-10-09T09:44:58.484Z (3 months ago)
- Language: Haskell
- Homepage:
- Size: 91.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yesod Statistics
### Description
A tool for logging requests and aggregating/viewing the logged data
### Stats
The stats module provides two important functions:
* `logRequest` should be placed in any route function you want to log
* `loggedRequests` will return the list of all that has been logged for
use in a widget.### Widgets
This module imports the `StatsEntry` data type and the `loggedRequests`
function. It then just uses the list of logged values to present
interesting data in the form of widgets. You can then call these widgets
to show your stats.### Usage
See ./Test.hs or read the
[haddocks](http://pbrisbin.com/haskell/docs/html/yesod-statistics)### Try it
Assuming you've got the required dependencies you can run the Test app
directly. If you don't, but are willing to install them, just `cabal
install` from within the yesod-statistics directory.git clone git://github.com/pbrisbin/yesod-statistics.git
cd yesod-statistics
runhaskell Test.hs
$BROWSER http://localhost:3000