Version bump
This commit is contained in:
parent
f2b435fa35
commit
b20c19d2c5
@ -1,3 +1,7 @@
|
|||||||
|
## 1.4.10
|
||||||
|
|
||||||
|
* Export log formatting [#1001](https://github.com/yesodweb/yesod/pull/1001)
|
||||||
|
|
||||||
## 1.4.9.1
|
## 1.4.9.1
|
||||||
|
|
||||||
* Deal better with multiple cookie headers
|
* Deal better with multiple cookie headers
|
||||||
|
|||||||
@ -295,6 +295,8 @@ class RenderRoute site => Yesod site where
|
|||||||
|
|
||||||
-- | Default implementation of 'makeLogger'. Sends to stdout and
|
-- | Default implementation of 'makeLogger'. Sends to stdout and
|
||||||
-- automatically flushes on each write.
|
-- automatically flushes on each write.
|
||||||
|
--
|
||||||
|
-- Since 1.4.10
|
||||||
defaultMakeLogger :: IO Logger
|
defaultMakeLogger :: IO Logger
|
||||||
defaultMakeLogger = do
|
defaultMakeLogger = do
|
||||||
loggerSet' <- newStdoutLoggerSet defaultBufSize
|
loggerSet' <- newStdoutLoggerSet defaultBufSize
|
||||||
@ -305,6 +307,8 @@ defaultMakeLogger = do
|
|||||||
-- message should be logged using the provided function, and if so,
|
-- message should be logged using the provided function, and if so,
|
||||||
-- formats using 'formatLogMessage'. You can use 'defaultShouldLogIO'
|
-- formats using 'formatLogMessage'. You can use 'defaultShouldLogIO'
|
||||||
-- as the provided function.
|
-- as the provided function.
|
||||||
|
--
|
||||||
|
-- Since 1.4.10
|
||||||
defaultMessageLoggerSource ::
|
defaultMessageLoggerSource ::
|
||||||
(LogSource -> LogLevel -> IO Bool) -- ^ Check whether we should
|
(LogSource -> LogLevel -> IO Bool) -- ^ Check whether we should
|
||||||
-- log this
|
-- log this
|
||||||
@ -322,11 +326,15 @@ defaultMessageLoggerSource ckLoggable logger loc source level msg = do
|
|||||||
|
|
||||||
-- | Default implementation of 'shouldLog'. Logs everything at or
|
-- | Default implementation of 'shouldLog'. Logs everything at or
|
||||||
-- above 'LevelInfo'.
|
-- above 'LevelInfo'.
|
||||||
|
--
|
||||||
|
-- Since 1.4.10
|
||||||
defaultShouldLog :: LogSource -> LogLevel -> Bool
|
defaultShouldLog :: LogSource -> LogLevel -> Bool
|
||||||
defaultShouldLog _ level = level >= LevelInfo
|
defaultShouldLog _ level = level >= LevelInfo
|
||||||
|
|
||||||
-- | A default implementation of 'shouldLogIO' that can be used with
|
-- | A default implementation of 'shouldLogIO' that can be used with
|
||||||
-- 'defaultMessageLoggerSource'. Just uses 'defaultShouldLog'.
|
-- 'defaultMessageLoggerSource'. Just uses 'defaultShouldLog'.
|
||||||
|
--
|
||||||
|
-- Since 1.4.10
|
||||||
defaultShouldLogIO :: LogSource -> LogLevel -> IO Bool
|
defaultShouldLogIO :: LogSource -> LogLevel -> IO Bool
|
||||||
defaultShouldLogIO a b = return $ defaultShouldLog a b
|
defaultShouldLogIO a b = return $ defaultShouldLog a b
|
||||||
|
|
||||||
@ -608,6 +616,8 @@ asyncHelper render scripts jscript jsLoc =
|
|||||||
Just j -> Just $ jelper j
|
Just j -> Just $ jelper j
|
||||||
|
|
||||||
-- | Default formatting for log messages.
|
-- | Default formatting for log messages.
|
||||||
|
--
|
||||||
|
-- Since 1.4.10
|
||||||
formatLogMessage :: IO ZonedDate
|
formatLogMessage :: IO ZonedDate
|
||||||
-> Loc
|
-> Loc
|
||||||
-> LogSource
|
-> LogSource
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-core
|
name: yesod-core
|
||||||
version: 1.4.9.1
|
version: 1.4.10
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user