Skip to content

Commit c217b32

Browse files
authored
improve readme (#13)
1 parent f0a5088 commit c217b32

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CONTRIBUTORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ needs to be listed here.
1515
- Iain Smith <[email protected]>
1616
- Ian Partridge <[email protected]>
1717
- Johannes Weiss <[email protected]>
18+
- Kevin Sweeney <[email protected]>
1819
- Konrad `ktoso` Malawski <[email protected]>
1920
- Max Moiseev <[email protected]>
2021

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
A Logging API package for Swift 5.
44

5-
This is still in very early development (we haven't even tagged a version yet) so your contributions of any kind would be very welcome!
5+
First things first: This is the beginning of a community-driven open-source project actively seeking contributions, be it code, documentation, or ideas. Apart from contributing to `swift-log` itself, there's another huge gap at the moment: `swift-log` is an _API package_ which tries to establish a common API the ecosystem can use. But to make logging really work for real-world workloads, we need `swift-log`-compatible _logging backends_ which then either persist the log messages in files, render them in nicer colors on the terminal, or send them over to Splunk or ELK.
6+
7+
What `swift-log` provides today can be found in the [API docs][api-docs]. At this moment, we have not tagged a version for `swift-log` yet but we will do so soon after Swift 5 gets released.
68

79
---
810

@@ -12,7 +14,7 @@ This is still in very early development (we haven't even tagged a version yet) s
1214

1315
## Great, what's the tl;dr
1416

15-
If you have a cross-platform (for example Linux & macOS) Swift application or library and you would like to log, we think targeting this logging API package is a great idea. Below you'll find all you need to know to get started.
17+
If you have a server-side Swift application or maybe a cross-platform (for example Linux & macOS) app/library and you would like to log, we think targeting this logging API package is a great idea. Below you'll find all you need to know to get started.
1618

1719
#### Adding the dependency
1820

@@ -44,6 +46,8 @@ logger.info("Hello World!")
4446
2019-03-13T15:46:38+0000 info: Hello World!
4547
```
4648

49+
For further information, please check the [API documentation][api-docs].
50+
4751
## What is an API package?
4852

4953
Glad you asked. We believe that for the Swift on Server ecosystem it's crucial to have a logging API that can be adopted by anybody so a multitude of libraries from different parties can all log to a shared destination. More concretely this means that we believe all the log messages from all libraries end up in the same file, database, Elastic Stack/Splunk instance, or whatever you may choose.
@@ -159,3 +163,5 @@ This logging API was designed with the contributors to the Swift on Server commu
159163

160164
- [pitch](https://forums.swift.org/t/logging/16027), [discussion](https://forums.swift.org/t/discussion-server-logging-api/18834), [feedback](https://forums.swift.org/t/feedback-server-logging-api-with-revisions/19375)
161165
- [log levels](https://forums.swift.org/t/logging-levels-for-swifts-server-side-logging-apis-and-new-os-log-apis/20365)
166+
167+
[api-docs]: https://apple.github.io/swift-log/docs/current/Logging/Structs/Logger.html

0 commit comments

Comments
 (0)