Commit Graph

12 Commits

Author SHA1 Message Date
T. R. Bernstein
5367493d15 Support new LogEvent interface
SwiftLog introduced the LogEvent LogHandler API with commit 1f38a59. This commit implements that new interface.
This was contributed by FelixSFD on GitHub.

See: 1f38a59922
2026-05-04 01:27:57 +02:00
FelixSFD
b4848737d2 updated for swift-log 1.12.0 2026-04-28 19:20:29 +02:00
T. R. Bernstein
e18692fd4d Separate metadata by a unicode arrow in log
Use a single unicode right arrow instead of the two char ASCII right
arrow to separate the metadata from the actual log message. This is just
a preference decision and has no functional background.
2.0.0
2026-03-02 19:38:45 +01:00
T. R. Bernstein
b48562c2b0 Describe JSON serialization of metadata in docs 2026-03-02 19:37:55 +01:00
T. R. Bernstein
d22556d04e Output metadata as JSON
Metadata shall be machine readable (see SwiftLog/Structured Logging) and
the previous metadata serialization erased the nesting structure.
The JSON output ensures that the metadata can be quickly analyzed by either a
copy and paste into a JSON editor or a small CLI pipeline.

See https://swiftpackageindex.com/apple/swift-log/1.10.1/documentation/logging/002-structuredlogging
for more information on metadata.
2026-03-02 18:53:17 +01:00
T. R. Bernstein
e3f2ba03ef Adapt internal API to Swift API Design Guidelines 2026-03-02 16:46:05 +01:00
T. R. Bernstein
e957caf031 Fix indention error in SPI config 1.0.1 2026-03-02 16:06:21 +01:00
T. R. Bernstein
48fdc144c1 Fix message reduction error
The unified logging system (aka OSLog) expects a OSLogMessage and does
not allow just passing in a string variable. Instead the variable has to
be interpolated into a string literal, which sets the default privacy
setting to 'private' and hence reducts the whole message.
This commit sets the privacy setting to 'public'.
2026-03-02 16:06:13 +01:00
T. R. Bernstein
63119a6310 Add EUPL license 1.0.0 2026-02-28 01:16:57 +01:00
T. R. Bernstein
45ab296e9e Add DocC documentation 2026-02-28 01:12:28 +01:00
T. R. Bernstein
003600ddff Add README 2026-02-28 00:22:08 +01:00
T. R. Bernstein
fec4a037db Initial implementation 2026-02-28 00:21:11 +01:00