You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
A Logging API package for Swift 5.
4
4
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.
6
8
7
9
---
8
10
@@ -12,7 +14,7 @@ This is still in very early development (we haven't even tagged a version yet) s
12
14
13
15
## Great, what's the tl;dr
14
16
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.
16
18
17
19
#### Adding the dependency
18
20
@@ -44,6 +46,8 @@ logger.info("Hello World!")
44
46
2019-03-13T15:46:38+0000 info: Hello World!
45
47
```
46
48
49
+
For further information, please check the [API documentation][api-docs].
50
+
47
51
## What is an API package?
48
52
49
53
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
0 commit comments