mirror of
https://github.com/apple/swift-log
synced 2026-11-30 04:18:44 +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
|
||||
|
||||
// helper class to keep things DRY
|
||||
internal final class SimpleLogger {
|
||||
internal struct SimpleLogger {
|
||||
let label: String
|
||||
private var _logLevel: Logging.Level?
|
||||
private let formatter: DateFormatter
|
||||
|
||||
Reference in new issue
Block a user