Version bump

This commit is contained in:
Michael Snoyman 2015-06-04 09:43:06 +03:00
parent f2b435fa35
commit b20c19d2c5
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## 1.4.10
* Export log formatting [#1001](https://github.com/yesodweb/yesod/pull/1001)
## 1.4.9.1
* Deal better with multiple cookie headers

View File

@ -295,6 +295,8 @@ class RenderRoute site => Yesod site where
-- | Default implementation of 'makeLogger'. Sends to stdout and
-- automatically flushes on each write.
--
-- Since 1.4.10
defaultMakeLogger :: IO Logger
defaultMakeLogger = do
loggerSet' <- newStdoutLoggerSet defaultBufSize
@ -305,6 +307,8 @@ defaultMakeLogger = do
-- message should be logged using the provided function, and if so,
-- formats using 'formatLogMessage'. You can use 'defaultShouldLogIO'
-- as the provided function.
--
-- Since 1.4.10
defaultMessageLoggerSource ::
(LogSource -> LogLevel -> IO Bool) -- ^ Check whether we should
-- log this
@ -322,11 +326,15 @@ defaultMessageLoggerSource ckLoggable logger loc source level msg = do
-- | Default implementation of 'shouldLog'. Logs everything at or
-- above 'LevelInfo'.
--
-- Since 1.4.10
defaultShouldLog :: LogSource -> LogLevel -> Bool
defaultShouldLog _ level = level >= LevelInfo
-- | A default implementation of 'shouldLogIO' that can be used with
-- 'defaultMessageLoggerSource'. Just uses 'defaultShouldLog'.
--
-- Since 1.4.10
defaultShouldLogIO :: LogSource -> LogLevel -> IO Bool
defaultShouldLogIO a b = return $ defaultShouldLog a b
@ -608,6 +616,8 @@ asyncHelper render scripts jscript jsLoc =
Just j -> Just $ jelper j
-- | Default formatting for log messages.
--
-- Since 1.4.10
formatLogMessage :: IO ZonedDate
-> Loc
-> LogSource

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.4.9.1
version: 1.4.10
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>