Portability | GHC |
---|---|
Stability | experimental |
Maintainer | woozletoff@gmail.com |
Safe Haskell | None |
- disableLogger :: IO a -> IO a
- withLogger :: FilePath -> Priority -> IO a -> IO a
Documentation
disableLogger :: IO a -> IO aSource
Disable logging to stderr.
withLogger :: FilePath -> Priority -> IO a -> IO aSource
Initialize the root logger to avoid stderr and set it to log the given file instead. Simply wrap the main entry point with this function to initialze the logger.
main =withLogger
/home/dude/nvim.logDebug
$ doputStrLn
Hello, World!