mirror of
https://github.com/apple/swift-log
synced 2026-11-27 04:14:20 +00:00
change example loggers to structs (#29)
motivation: encourage use of immutable loggers changes: change example loggers to structs
This commit is contained in:
1 parent
0bf0588b17
commit
1d983153b4
5 files changed
+5
-5
No files matched your search
@@ -6,7 +6,7 @@ import Foundation
|
||||
import Logging
|
||||
|
||||
// this is a contrived example of a logging library implementation that writes logs to stdout
|
||||
public final class SimpleLogging {
|
||||
public struct SimpleLogging {
|
||||
private let defaultLogLevel = Logging.Level.info
|
||||
|
||||
public init() {}
|
||||
|
||||
Reference in new issue
Block a user