# Swift-log is open

**URL:** <https://forums.swift.org/t/swift-log-is-open/21750>\
**Category:** Development\
**Created:** [March 18, 2019, 7:00pm UTC](https://forums.swift.org/t/swift-log-is-open/21750 "2019-03-18T19:00:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannesweiss](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/johannesweiss/32/38183_2.png) [@johannesweiss](https://forums.swift.org/u/johannesweiss)\
**Post date:** [March 18, 2019, 7:00pm UTC](https://forums.swift.org/t/swift-log-is-open/21750/1 "2019-03-18T19:00:20Z")

</div>

After the SSWG [accepted](https://forums.swift.org/t/february-7th-2019/20249) this proposal to the 'sandbox' stage, we finally followed through and opened the [repository](https://github.com/apple/swift-log) 🙂. So we can now officially kick off the open-source `swift-log` project!

The swift-log repository got seeded from the pitch/proposal repository which was under my personal github alongside a few changes:

- adoption of the log levels as discussed in the [separate thread](https://forums.swift.org/t/logging-levels-for-swifts-server-side-logging-apis-and-new-os-log-apis/20365)
- name: `swift-log`
- proper licensing (Apache 2, as proposed)
- rename the `Logging` type to `LoggingSystem` so we don't have a clash between the module name (`Logging`) and the type to bootstrap your loggers
- added a readme and some [API docs](https://apple.github.io/swift-log/docs/current/Logging/Structs/Logger.html)
- removed the proposal/examples
- just like [proposed for osLog](https://forums.swift.org/t/custom-string-interpolation-and-compile-time-interpretation-applied-to-logging/18799), to leverage the best performance and have more unification we switched the log messages' type from `String` to `Logger.Message` which is a struct that can be created using any string literal + string interpolation. Don't worry, it looks & feels just like a `String` (`logger.info("hello world")`)
- require Swift 5 (required for the [new string interpolation support](https://github.com/apple/swift-evolution/blob/master/proposals/0228-fix-expressiblebystringinterpolation.md))
- a bunch of smaller changes

Thank you so much for all the contributions! Now more than ever: please keep your awesome contributions coming, this is only the start of swift-log and swift-log is only the start of a logging that works across the whole ecosystem.

---

<div class="post-metadata">

**Author:** ![tomerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tomerd/32/3402_2.png) [@tomerd](https://forums.swift.org/u/tomerd)\
**Post date:** [March 18, 2019, 7:59pm UTC](https://forums.swift.org/t/swift-log-is-open/21750/2 "2019-03-18T19:59:23Z")

</div>

> [@johannesweiss](#):
>
> Thank you so much for all the contributions! Now more than ever: please keep your awesome contributions coming, this is only the start of swift-log and swift-log is only the start of a logging that works across the whole ecosystem.

!!!

---

<div class="post-metadata">

**Author:** ![ktoso](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ktoso/32/44526_2.png) [@ktoso](https://forums.swift.org/u/ktoso)\
**Post date:** [March 19, 2019, 1:44am UTC](https://forums.swift.org/t/swift-log-is-open/21750/3 "2019-03-19T01:44:45Z")

</div>

Awesome! 🎉  
Really looking forward to see various `LogHandler`s get implemented now by various people 🙂

That's where the real fun's at!

---

<div class="post-metadata">

**Author:** ![shpakovski](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/shpakovski/32/5559_2.png) [@shpakovski](https://forums.swift.org/u/shpakovski)\
**Post date:** [March 19, 2019, 7:08am UTC](https://forums.swift.org/t/swift-log-is-open/21750/4 "2019-03-19T07:08:53Z")

</div>

This API and the whole approach is just mind-blowing. Thank you very much for building such library.
