Mikhail Kasianov
96a2f8a0fa
Add Scout to the list of available backends ( #337 )
...
* Add Scout to the list of available backends
* Update README.md
1.6.2
2024-11-25 17:24:15 +00:00
Rick Newton-Rogers
0e75c43ee4
add .editorconfig file ( #338 )
2024-11-14 17:01:02 +01:00
LamTrinh.Dev
5f816304f9
Enhance swift codeblock at README.md ( #327 )
2024-11-13 13:38:45 +00:00
Franz Busch
1efe6f8129
Fix Windows warnings ( #331 )
...
# Motivation
Fixes https://github.com/apple/swift-log/issues/330 .
We had a few warnings since we were using deprecated POSIX methods on Windows.
# Modification
Moves to the non-deprecated underscored methods.
# Result
Windows build is warning free.
2024-10-31 11:55:18 +01:00
Franz Busch
ee1bfd3f47
[CI] Migrate to GHA ( #328 )
...
# Motivation
We want to modernize our CI.
# Modification
This PR migrates to GH actions and turns on all the right flags.
# Result
Modern CI.
2024-10-30 13:17:15 +00:00
LamTrinh.Dev
da3fdd167f
Correct the link of incubation-process at README.md ( #326 )
2024-10-09 00:22:10 -07:00
Alex Lorenz
d03205626d
add android support ( #325 )
2024-10-01 08:23:03 +09:00
LamTrinh.Dev
2cb03fa60e
Correct the link of sswg-security at SECURITY.md ( #318 )
2024-09-19 02:00:49 -07:00
b1ackturtle
db86ac725b
Fix compile warnings for Swift 6 language mode ( #313 )
2024-06-25 11:53:51 -07:00
George Barnett
9cb486020e
Disable existential any build setting ( #312 )
...
Motivation:
On 5.8, if the experiment existential any setting is enabled and a
consuming package holds an existential of a type from swift-log without
an explicit 'any' then the build will fail.
Modifications:
- Disable the setting
Result:
Users of 5.8 aren't broken
1.6.1
2024-06-24 18:21:21 +01:00
elishas
b3a6373077
Update README.md add shipbook as backend ( #304 )
...
Motivation:
Added shipbook as backend for the library.
Modifications:
Just added it to the backend list.
Result:
Will have a fuller list.
1.6.0
2024-06-20 05:18:55 -07:00
Ross Butler
4bcd3dfb11
Added swift-log-ecs to README.md ( #298 )
2024-06-19 10:06:47 +01:00
Peter Adams
7adcf9aa15
Remove Docc plugin which is no longer required. ( #311 )
...
Motivation:
Plugin is no longer required to produce docs.
There are now warnings in the plugin when included
and it will delay build a small amount.
Modifications:
Remove plugin dependency.
Result:
No dependencies.
2024-06-19 09:27:12 +01:00
Peter Adams
f5312694b3
Fix deprecation warnings around default log implementations on handlers ( #310 )
...
Motivation:
Latest swift introduces new warnings when deprecated default
implementations are used.
Modifications:
Add new log implementation to NoopLogHandler.
Mark test of old method as deprecated to silence warning.
Result:
Warning free builds on latest swift 6 compiler.
2024-06-19 05:19:26 +01:00
Peter Adams
6553ef5893
Add Sendability annotations ( #308 )
...
Motivation:
This becomes a critical feature in swift 6.
Modifications:
Add Sendability annotations where required.
Factor out code protected by locks.
Result:
Compiles without warnings with Sendability checking
2024-06-18 08:28:58 -07:00
b1ackturtle
11e749ea6d
Remove documentation for non-existent arguments ( #309 )
2024-06-17 02:16:17 -07:00
Peter Adams
d16e216341
Make protocol usage obvious using any and some keywords ( #307 )
...
Motivation:
Calling through protocols is more expensive than many other types of call.
Modifications:
Annotate each protocol usage with any or some keywords.
Result:
Protocol usage now obvious
2024-06-10 15:16:46 +01:00
Peter Adams
0f170b4764
Use Set to spot duplicated log handler warnings. ( #306 )
...
Motivation:
Feels like a better fit for the problem when a dictionary of bools.
Modifications:
Convert storage to set.
Result:
Fewer lines of code, less waste.
2024-06-10 14:17:43 +01:00
23517234d5
feat: Implement Copy-On-Write (CoW) behavior for Logger struct ( #297 )
...
* feat: Implement Copy-On-Write (CoW) behavior for Logger struct
* fix: refactored the struct and added test
* fix: refactored the struct
* fix: refactored the struct
* fix:Added compiler directive and @usableFromInline/@inlinable
* fix: Add endif label
* fix: Remove colon causing expected type
* fix: Add inlinable and moving compiler derective
* nit
* fix: add inlinable
* Update Sources/Logging/Logging.swift
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
* Update Sources/Logging/Logging.swift
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
* Update Sources/Logging/Logging.swift
Co-authored-by: Franz Busch <privat@franz-busch.de >
* Update Sources/Logging/Logging.swift
Co-authored-by: Franz Busch <privat@franz-busch.de >
* fix: add self to class declaration and fixed formatting
* fix: make label public
* fix: format
* fix: remove setter
* test: added a test case
---------
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
Co-authored-by: Franz Busch <privat@franz-busch.de >
2024-05-30 11:18:30 +01:00
Gustavo Cairo
c7dcb55fb9
Drop Swift versions earlier than 5.8 ( #299 )
...
* Drop Swift versions earlier than 5.8
* Delete build_podspec.sh
* Update check_no_api_breakages script
2024-05-16 10:11:40 +01:00
Franz Busch
ebb05e0317
Remove archived repository ( #292 )
...
https://github.com/luoxiu/LogDog appears to be archived.
2024-05-09 13:42:36 +01:00
Ayushi Tiwari
b1617b3c0c
feat: Replace standardOutput to standardError ( #295 )
2024-05-09 14:21:58 +02:00
Yim Lee
c1ff8be7bc
Add CI for Swift 5.10 ( #287 )
2024-01-23 08:24:18 -08:00
Alastair Houghton
e97a6fcb1a
Changes to build with Musl. ( #283 )
...
Added imports of Musl in a few places. Also added definitions
for `systemStderr` and `systemStdout`.
1.5.4
2023-12-07 10:42:43 -08:00
Tim Condon
4587ac512c
Update README.md ( #279 )
...
Improve the README to make it easier to find different logging backends
2023-11-24 12:17:59 +09:00
Gwynne Raskind
f447991bd2
Don't assume localtime() result is non-nil ( #280 )
...
Don't assume localtime() result is non-nil
2023-11-16 16:15:22 -08:00
tomer doron
86ee8ef09e
update CI script ( #281 )
...
motivation: fix CI
* do not install ruby or jazzy, they are no longer needed
* remove documentation generation script
2023-11-17 07:30:57 +09:00
Florian Friedrich
cb28750240
Add CocoaLumberjack to list of logging backends ( #276 )
2023-08-23 09:46:39 -07:00
Fanny
532d8b5295
docs: fix typo ( #272 )
1.5.3
2023-08-10 23:30:58 -07:00
Kilian Koeltzsch and Konrad `ktoso` Malawski
f8ce47d3b0
add kiliankoe/swift-log-matrix to list of backends ( #263 )
...
Co-authored-by: Konrad `ktoso` Malawski <konrad_malawski@apple.com >
2023-06-26 06:31:42 -07:00
Mahdi Bahrami and Konrad `ktoso` Malawski
1ef0345e1e
Fix DiscordLogger link ( #266 )
...
Co-authored-by: Konrad `ktoso` Malawski <konrad_malawski@apple.com >
2023-06-23 13:54:15 +09:00
Franz Busch
5996c7a1b4
Use #if canImport(Darwin) where possible ( #269 )
2023-06-21 10:53:31 -07:00
tomer doron
1aacf8affa
update code of conduct ( #268 )
...
motivation: align CoC across the swift project
changes: change CoC to link to the swift.org version
2023-06-06 10:24:05 -07:00
Yim Lee
bd5ff0d8e4
Update CI ( #264 )
...
- Swift 5.8 docker images are available
- Add docker-compose file for Swift 5.9
2023-04-04 20:21:17 -07:00
Mahdi Bahrami and Konrad `ktoso` Malawski
f79ba6a75f
Add DiscordBM/DiscordLogger to loggers list ( #257 )
...
* Add DiscordBM/DiscordLogger to loggers list
Adds [DiscordBM](https://github.com/MahdiBM/DiscordBM/blob/discord-logger/README.md#discord-logger ) to the logger list.
The description is:
> a Discord package containing a standalone [DiscordLogger library](https://github.com/MahdiBM/DiscordBM/blob/discord-logger/README.md#discord-logger )
Please do tell if you think "standalone" is misleading 🤔 I'm just trying to imply that users don't need to depend on the full package just for Discord-logging.
Resolves #256
* Update README.md
---------
Co-authored-by: Konrad `ktoso` Malawski <konrad_malawski@apple.com >
2023-02-12 17:56:04 -08:00
Konrad `ktoso` Malawski
6763fd0b73
Remove leftover 5.0 Package.swift; not supported since 1.5.0 ( #259 )
2023-01-31 22:27:53 +09:00
Yim Lee
32e8d72446
Add CI for Swift 5.8 and update nightly to Ubuntu 22.04 ( #255 )
1.5.2
2023-01-24 10:41:01 +09:00
Konrad `ktoso` Malawski
b2eff1c427
Handle providers properly in multiplex log handler ( #254 )
...
Co-authored-by: Moritz Lang <hi@slashmo.codes >
Resolves https://github.com/apple/swift-log/issues/253
2023-01-24 10:10:39 +09:00
Konrad `ktoso` Malawski
ba2a9f5b93
Avoid logging warnings when handler does not support metadataproviders ( #252 )
2023-01-23 23:58:13 +09:00
Moritz Lang and Konrad `ktoso` Malawski
3e3ef75109
Emit correct metadata from StreamLogHandler ( #251 )
...
Co-authored-by: Konrad `ktoso` Malawski <konrad_malawski@apple.com >
1.5.1
2023-01-19 05:41:36 +09:00
Konrad `ktoso` Malawski and Yim Lee
bd4519f1c2
Allow passing explicit provider into the stream handlers ( #250 )
...
Co-authored-by: Yim Lee <yim_lee@apple.com >
2023-01-18 12:32:30 -08:00
e6ca651cbc
Metadata Providers (e.g. for Distributed Tracing) in LogHandlers ( #238 )
...
Co-authored-by: Moritz Lang <hi@slashmo.codes >
Co-authored-by: Yim Lee <yim_lee@apple.com >
1.5.0
2023-01-18 16:23:37 +09:00
Timo Boll
dc77805fdc
Fixes link to Supabase repository ( #245 )
2023-01-05 16:32:24 -08:00
Yim Lee
e979c6945c
Add .spi.yml for Swift Package Index DocC support ( #240 )
2022-12-01 21:41:27 -08:00
Lukas
d86803715f
Fix build for wasm ( #236 )
...
Seems like a few places were missed in the locking refactor, which made the WASM build fail
2022-11-02 11:00:11 -07:00
Ruslan Kavetsky
f7b7977065
Update README.md ( #233 )
2022-09-17 15:00:35 +09:00
Konrad `ktoso` Malawski
ce09fe6dac
Undo 5.7 package files, not needed yet ( #232 )
...
* Undo 5.7 package files, not needed yet
* no need for xcrun in docs preview script
2022-08-24 12:33:23 +09:00
Konrad `ktoso` Malawski
a8e1148aa5
=docc Move to multiple Package.swift files ( #231 )
...
* +docc prepare for docc docs
* fix syntax in one of the package files
* ignore package.resolved
2022-08-23 18:29:56 +09:00
Konrad `ktoso` Malawski
483e2bbcdd
=docc Make docs use symbol references ( #230 )
2022-08-23 17:11:11 +09:00
Konrad `ktoso` Malawski and Yim Lee
d5bf59c6b2
[docs] Minimal docc setup and landing page ( #226 )
...
* [docs] Minimal docc setup and landing page
* move index file
* Update Sources/Logging/Logging.swift
Co-authored-by: Yim Lee <yim_lee@apple.com >
Co-authored-by: Yim Lee <yim_lee@apple.com >
2022-08-23 16:08:28 +09:00