co-log-json
Structured messages support in co-log ecosystem.
The library implements of a very simple approach to structured logging, that
ca be used with the [co-log](https://hackage.haskell.org/package/co-log)
ecosystem or on it's own see [cheops-logger](https://github.com/cheopslab/cheops-logger).
It provides:
* "Colog.Json" — API for adding structured context to the log messages
* "Colog.Json.Action" — efficient function for dumping logs in the
following format.
By default it emits logs in the following format (pretty-printed for convenience):
@
{ "namespace":"server.package" -- namespace for the component
, "severity": \"DEBUG\" -- severity level
, "thread":19 -- id of the thread that emitted the message
, "message":"some long text " -- textual message itself
, "data": -- user data
{ "ip":"8.8.8.8"
, "http.request_id":"b362cd5db5c193c05312af4d3a399955"
, "http.method":\"DELETE\"
, "http.path":"\/url\/"
, "user_id":"123"
}
}
@
The most interesting thing here is the field @data@ that can be used by the user
to add additional structured info to the message.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.2 | 2025-06-08 11:21 UTC | AlexanderVershilov | +4/−4 lines, 1 filesdep ~aesondep ~bytestringdep ~textPVP ok | |
| 0.1.0.0 | 2023-01-10 16:05 UTC | AlexanderVershilov | +25/−15 lines, 4 filesdep ~aesondep ~bytestringdep ~co-log-corePVP ok | |
| 0.0.1.0 | 2020-11-10 22:36 UTC | AlexanderVershilov | +1146/−0 lines, 9 filesdep +aesondep +basedep +bytestringsetup-changed |
Dependencies of co-log-json-0.1.0.2
aeson >=2.0 && <2.3 2.2.5.1 → 2.3.3.0 newer than bounds
| 2026-11-23 21:23 UTC | 2.3.3.0 newer than bounds | +124/−38 lines, 10 filesPVP ok |
| 2026-09-12 18:04 UTC | 2.3.2.0 newer than bounds | +97/−60 lines, 13 filesPVP ok |
| 2026-07-05 10:37 UTC | 2.3.1.0 newer than bounds | +101/−42 lines, 17 filesdep ~text-iso8601PVP ok |
| 2026-05-21 08:35 UTC | 2.3.0.0 newer than bounds | +54/−41 lines, 17 filesdep ~nothunksdep ~text-iso8601new-uploaderPVP ok |
| 2026-08-29 13:20 UTC | 2.2.5.1 | +36/−24 lines, 4 filesnew-uploaderPVP ok |
showing 5 of 106 versions
base >=4.11 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
bytestring >=0.10 && <0.13 0.12.1.0 → 0.12.2.0
| 2024-12-06 21:41 UTC | 0.12.2.0 | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
co-log-core >=0.2 && <0.4 0.3.2.6 → 0.3.2.7
| 2026-05-27 15:26 UTC | 0.3.2.7 | +10/−2 lines, 2 filesdep ~doctestPVP ok |
| 2026-01-05 17:02 UTC | 0.3.2.6 | +20/−11 lines, 7 filesdep ~basePVP: major bump suggested |
| 2025-03-02 07:35 UTC | 0.3.2.5 | +11/−3 lines, 2 filesdep ~doctestPVP ok |
| 2025-01-05 09:05 UTC | 0.3.2.4 | +15/−6 lines, 2 filesdep ~basePVP ok |
| 2024-12-15 08:31 UTC | 0.3.2.3 | +19/−11 lines, 7 filesdep ~doctestPVP ok |
showing 5 of 16 versions
containers >=0.6 && <0.7 0.6.8 → 0.8.1 newer than bounds
| 2026-10-04 06:08 UTC | 0.8.1 newer than bounds | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 newer than bounds | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 newer than bounds | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
string-conv >=0.1 && <0.3 0.1.2 → 0.2.0
| 2022-03-04 00:48 UTC | 0.2.0 | +298/−147 lines, 6 filesdep +quickcheck-instancesdep +string-convdep +tastysetup-changedPVP ok |
| 2016-06-22 23:17 UTC | 0.1.2 | +16/−5 lines, 3 filesPVP ok |
| 2016-05-03 15:15 UTC | 0.1.1 | +35/−5 lines, 4 filesnew-uploaderPVP ok |
| 2015-02-26 20:17 UTC | 0.1 | +169/−0 lines, 4 filesdep +basedep +bytestringdep +textsetup-changed |
text >=1.2 && <2.2 2.1.4 → 2.1.5
| 2026-11-27 23:30 UTC | 2.1.5 | +33786/−32979 lines, 58 filesPVP: major bump suggested |
| 2026-01-28 08:30 UTC | 2.1.4 | +30991/−20199 lines, 35 filesdep +template-haskell-liftdep ~QuickCheckdep ~template-haskellPVP ok |
| 2025-08-01 20:08 UTC | 2.1.3 | +2107/−1827 lines, 30 filesdep +splitmixdep +temporarydep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP ok |
| 2024-10-26 13:22 UTC | 2.1.2 | +43588/−15378 lines, 41 filesdep ~basedep ~binaryPVP: major bump suggested |
| 2024-02-16 22:16 UTC | 2.1.1 | +986/−412 lines, 26 filesdep ~QuickCheckdep ~ghc-primdep ~template-haskellPVP: major bump suggested |
showing 5 of 83 versions
Reverse dependencies
no known reverse dependencies