Copyright | (c) 2011-2021 Amy de Buitléir |
---|---|
License | BSD-style |
Maintainer | amy@nualeargais.ie |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
A simple rotating log, tailored to the needs of the Créatúr framework.
Synopsis
- data SimpleLogger
- mkSimpleLogger :: FilePath -> SimpleLogger
Documentation
data SimpleLogger Source #
A rotating logger.
Instances
Eq SimpleLogger Source # | |
Defined in ALife.Creatur.Logger.SimpleLogger (==) :: SimpleLogger -> SimpleLogger -> Bool # (/=) :: SimpleLogger -> SimpleLogger -> Bool # | |
Show SimpleLogger Source # | |
Defined in ALife.Creatur.Logger.SimpleLogger showsPrec :: Int -> SimpleLogger -> ShowS # show :: SimpleLogger -> String # showList :: [SimpleLogger] -> ShowS # | |
Logger SimpleLogger Source # | |
Defined in ALife.Creatur.Logger.SimpleLogger writeToLog :: String -> StateT SimpleLogger IO () Source # |
mkSimpleLogger :: FilePath -> SimpleLogger Source #
creates a logger that will write to
file mkSimpleLogger
ff
.