mirror of
https://github.com/apple/swift-log
synced 2026-11-28 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
@@ -8,7 +8,7 @@ import Logging
|
||||
// this is a contrived example of a logging library implementation that allows users to define log levels per logger label
|
||||
// this example uses a simplistic in-memory config which can be changed at runtime via code
|
||||
// real implementations could use external config files that can be changed outside the running program
|
||||
public final class ConfigLogging {
|
||||
public struct ConfigLogging {
|
||||
public var config = Config(defaultLogLevel: .info)
|
||||
|
||||
public init() {}
|
||||
|
||||
Reference in new issue
Block a user