Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | woozletoff@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- disableLogger :: IO a -> IO a
- withLogger :: FilePath -> Priority -> IO a -> IO a
Documentation
disableLogger :: IO a -> IO a Source
Disable logging to stderr.
withLogger :: FilePath -> Priority -> IO a -> IO a Source
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 "homedude/nvim.log" Debug $ do
putStrLn "Hello, World!"