packages feed

logging 1.3.0 → 1.4.0

raw patch · 2 files changed

+5/−6 lines, 2 filesdep +timedep −thyme

Dependencies added: time

Dependencies removed: thyme

Files

Control/Logging.hs view
@@ -65,13 +65,12 @@ import Control.Monad.IO.Class import Control.Monad.Logger import Control.Monad.Trans.Control-import Data.AffineSpace import Data.IORef import Data.Maybe (isJust) import Data.Monoid import Data.Text as T import Data.Text.Encoding as T-import Data.Thyme+import Data.Time import Debug.Trace import Prelude hiding (log) import System.IO.Unsafe@@ -293,7 +292,7 @@   where     wrapup start m = do         end <- liftIO getCurrentTime-        logf $ msg <> m <> " [" <> pack (show (end .-. start)) <> "]"+        logf $ msg <> m <> " [" <> pack (show (diffUTCTime end start)) <> "]"  -- | Output a logging message both before an action begins, and after it ends, --   reporting the total length of time.  If an exception occurred, it is also
logging.cabal view
@@ -1,5 +1,5 @@ Name:                logging-Version:             1.3.0+Version:             1.4.0 Synopsis:            Simplified logging in IO for application writers. License-file:        LICENSE License:             MIT@@ -14,7 +14,7 @@   provides the following conveniences on top of those libraries:   .   - A 'MonadLogger' instance for 'IO'.  Usually this is bad for libraries, but-    can be very convenience for application writers who know they always want+    can be very convenient for application writers who know they always want     to log from IO to the console.  If you need to log to other sources, or to     make logging compile-time optional, use @monad-logger@ directly.   .@@ -46,7 +46,7 @@       , bytestring           >= 0.9.2.1       , fast-logger          >= 2.1.5       , old-locale           >= 1.0.0.5-      , thyme                >= 0.3.1.0+      , time                 >= 1.4       , monad-control        >= 0.3.2.3       , monad-logger         >= 0.3.4.0       , text                 >= 0.11.3.1