Changelog for Blammo-2.1.3.0
Unreleased
v2.1.3.0
- Add
setLogSettingsColorsto support customizing colors
v2.1.2.0
- Add
setLoggerReformat
v2.1.1.0
- Accept special value
nullforLOG_DESTINATIONas a synonym for the null device (/dev/nullor\\.\NULon windows).
v2.1.0.0
Removes less frequently used definitions from the main Blammo.Logging module
into other modules.
- Moved from
Blammo.Loggingto new moduleBlammo.Logging.ThreadContext:MonadMask,withThreadContext,myThreadContext,Pair. - Removed from
Blammo.Logging(still available inBlammo.Logging.LogSettings):LogSettings,LogDestination (..),LogFormat (..),defaultLogSettings,LogColor (..),setLogSettingsLevels,setLogSettingsDestination,setLogSettingsFormat,setLogSettingsColor,setLogSettingsBreakpoint,setLogSettingsConcurrency. - Moved from
Blammo.Loggingto new moduleBlammo.Logging.Setup:HasLogger (..),withLogger,newLogger,runLoggerLoggingT,LoggingT,WithLogger (..),runWithLogger
Blammo.Logging.Simple has been expanded to include reƫxports of:
Blammo.Logging.LogSettingsBlammo.Logging.SetupBlammo.Logging.ThreadContext
v2.0.0.0
- Remove module
Network.Wai.Middleware.Logging. It is moved to a new package,Blammo-wai.
v1.2.1.0
- Add
Blammo.Logging.Simple.withLoggerEnv
v1.2.0.0
- New in
Blammo.Logging:withLogger,WithLogger(..), runWithLogger - New in
Blammo.Logging.Logger:runLogAction - WAI middleware no longer performs a log flush. Wrap your entire application
in either
withLoggerLoggingTorwithLoggerto ensure a log flush at application shutdown.
v1.1.3.0
- Update fast-logger to fix log flushing bug, and remove 0.1s delay that was introduced as a workaround.
v1.1.2.3
- Add small delay (0.1s) in
flushLoggerto work around fast-logger bug
v1.1.2.2
-
Don't automatically colorize if
TERM=dumbis found in ENV -
Respect
NO_COLOR -
Automatically adjust log concurrency based on
LOG_FORMAT:Disable concurrency for
tty(making that the new default) and enable it forjson. SettingLOG_CONCURRENCYwill still be respected.
v1.1.2.1
- Add various
getColors*helper functions
v1.1.2.0
- Add
Blammo.Logging.LogSettings.LogLevels
v1.1.1.2
- Fix bug in
LOG_CONCURRENCYparser
v1.1.1.1
- Add
getLogSettingsConcurrency - Add
getLoggerShouldColor - Add
pushLoggerStr&pushLoggerStrLn - Add
getLoggerLogSettings
v1.1.1.0
- Terminal formatter: align attributes vertically if the message goes over a certain number of characters (default 120).
- Adds
{get,set}LogSettingsBreakpointandLOG_BREAKPOINTparsing
v1.1.0.0
- Add
flushLogger - Ensure log is flushed even on exceptions.
v1.0.3.0
- Add
Env.{parse,parser}Withfunctions for parsing 'LogSettings' from environment variables with custom defaults.
v1.0.2.3
- Fix for localhost
clientIpvalue inrequestLogger(#18)
v1.0.2.2
- Support down to LTS 12.26 / GHC 8.4
v1.0.2.1
- Add configurability to
requestLogger, setLogSourceby default - Add ability to capture and retrieve logged messages, for testing
v1.0.1.1
- Add
addThreadContextFromRequest, a waiMiddlewarefor adding context using information from theRequest.
v1.0.0.1
- Relax lower bounds, support GHC 8.8
v1.0.0.0
First tagged release.