packages feed

hslogger 1.3.1.2 → 1.3.2.0

raw patch · 3 files changed

+27/−25 lines, 3 filesdep −old-localedep ~HUnitdep ~networkdep ~timePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: old-locale

Dependency ranges changed: HUnit, network, time

API changes (from Hackage documentation)

- System.Log.Formatter: type LogFormatter a = -- | The LogHandler that the passed message came from a -> -- | The log message and priority LogRecord -> -- | The logger name String -> -- | The formatted log message IO String
+ System.Log.Formatter: type LogFormatter a = a -> LogRecord -> String -> IO String

Files

CHANGELOG.md view
@@ -1,3 +1,11 @@+### 1.3.2.0++_2025-08-30, Andreas Abel_++- Drop flag `network--GT-3_0_0` and support for `network < 3`+- Allow newer `time`+- Tested with GHC 8.0 - 9.14 alpha1+ #### 1.3.1.2  _2025-03-11, Andreas Abel_
hslogger.cabal view
@@ -1,7 +1,7 @@-cabal-version: 1.12+cabal-version: 1.18 build-type: Simple name: hslogger-version: 1.3.1.2+version: 1.3.2.0  maintainer: https://github.com/haskell-hvr/hslogger author: John Goerzen@@ -22,9 +22,11 @@  or filter messages based on the priority and source.  @hslogger@ also  has a [Syslog](https://tools.ietf.org/html/rfc5424) handler built in. -extra-source-files:+extra-doc-files:     LICENSE     CHANGELOG.md++extra-source-files:     contrib/java/build.xml     contrib/java/hslogger4j.jar     contrib/java/hslogger4j-plugins.xml@@ -35,10 +37,11 @@     testsrc/runtests.hs  tested-with:-  GHC == 9.12.1-  GHC == 9.10.1+  GHC == 9.14.1+  GHC == 9.12.2+  GHC == 9.10.2   GHC == 9.8.4-  GHC == 9.6.6+  GHC == 9.6.7   GHC == 9.4.8   GHC == 9.2.8   GHC == 9.0.2@@ -53,11 +56,6 @@   type: git   location: http://github.com/haskell-hvr/hslogger.git -flag network--GT-3_0_0-  description: [network](http://hackage.haskell.org/package/network) ≥ 3.0.0-  default: True-  manual: False- library     hs-source-dirs: src     exposed-modules:@@ -76,19 +74,14 @@     other-extensions: CPP ExistentialQuantification DeriveDataTypeable      build-depends:-      -- Lower bounds are chosen from LTS 7.24 (GHC 8.0.1)-        base       >= 4.9      && < 5-      , bytestring >= 0.10.8.1 && < 0.13-      , containers >= 0.5.7.1  && < 1-      , deepseq    >= 1.4.2.0  && < 1.6-      , time       >= 1.6.0.1  && < 1.15-      , old-locale >= 1.0.0.7  && < 1.1--    if flag(network--GT-3_0_0)-      build-depends: network-bsd >= 2.8.1 && <2.9,-                     network >= 3.0 && <3.3-    else-      build-depends: network >= 2.6.3.1 && <2.9+      -- Lower bounds are at least the ones from LTS 7.24 (GHC 8.0.1)+        base         >= 4.9       && < 5+      , bytestring   >= 0.10.8.1  && < 0.13+      , containers   >= 0.5.7.1   && < 1+      , deepseq      >= 1.4.2.0   && < 1.6+      , time         >= 1.6.0.1   && < 2+      , network-bsd  >= 2.8.1     && <2.9+      , network      >= 3.0       && <3.3      if !os(windows)       Build-Depends: unix >= 2.7.2.0 && < 2.9@@ -103,5 +96,5 @@     default-language: Haskell2010     build-depends:         base-      , HUnit == 1.3.* || == 1.6.*+      , HUnit == 1.6.*       , hslogger
src/System/Log/Handler/Syslog.hs view
@@ -266,6 +266,7 @@           sent <- case sock_type sh of                     S.Datagram -> sendTo (logsocket sh) omsg (address sh)                     S.Stream   -> send   (logsocket sh) omsg+                    _ -> undefined           sendstr (genericDrop sent omsg)         toSyslogFormat msg' pidPart =             "<" ++ code ++ ">" ++ identity' ++ pidPart ++ ": " ++ msg' ++ "\0"