Multiple proposal improvements to the API (#41)

* Move `Logging.make` to a `Logger` initializer.
* Remove all factory initializers in example and test code.
This commit is contained in:
David Hart authored and Johannes Weiss committed 2019-02-18 20:27:59 +01:00
1 parent 03174f3260
commit 2474d61a80
19 files changed
+336 -376

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import Logging
// this library does not know anything about the systewm that used it, so cannot make
// assumptions about them
class RandomLibrary {
private let logger = Logging.make("RandomLibrary")
private let logger = Logger(label: "RandomLibrary")
private let queue = DispatchQueue(label: "RandomLibrary")
public init() {}