logging
logging copied to clipboard
See: https://github.com/kazu-yamamoto/logger/issues/194
It would be nice (especially for library use) if there were a default logger that wasn't an `error` call. Either default to stdout or just a no-op logger, then let...
Firstly, thanks for creating this library! I really appreciate having a simple logging library for getting stuff up and running quickly. I'm in a situation where I need to log...
``` {-# LANGUAGE OverloadedStrings #-} module Main where import Prelude hiding (log) import Control.Logging import Data.Text main = do withFileLogging "test.log" $ do log "abc" log "abcxyz" --- The below...
By inspecting the [call stack](https://hackage.haskell.org/package/base-4.9.0.0/docs/GHC-Stack.html#g:2), we can derive the source location of a logging call without any effort from the user.
It feels inconsistent for `log` to return an `IO ()` but for `log'` to return a `MonadIO m => m ()`.