File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3939 /// logger.log("Paid with bank account \(accountNumber)")
4040 /// ```
4141 public subscript( subsystem subsystem: String , category category: String ) -> Logger {
42- return Logger ( subsystem: subsystem, category: category)
42+ Logger ( subsystem: subsystem, category: category)
4343 }
4444 /// Creates a `Logger` value where messages are categorized by the provided argument.
45- /// The `Logger`'s subsystem is the bundle identifier, extracted from the ``BundleInfo``
46- /// dependency.
45+ /// The `Logger`'s subsystem is the bundle identifier.
4746 ///
4847 /// You can use this subscript on the `\.logger` dependency:
4948 /// ```swift
5251 /// logger.log("Paid with bank account \(accountNumber)")
5352 /// ```
5453 public subscript( category: String ) -> Logger {
55- @Dependency ( \. bundleInfo) var bundleInfo
56- return Logger ( subsystem: bundleInfo. bundleIdentifier, category: category)
54+ Logger ( subsystem: Bundle . main. bundleIdentifier ?? " " , category: category)
5755 }
5856 }
5957#endif
You can’t perform that action at this time.
0 commit comments