@@ -4,8 +4,7 @@ import Foundation
44import OSLog
55import Testing
66
7- // Use Diagnostics.LogCategory to avoid ambiguity
8- typealias LogCategory = Diagnostics . LogCategory
7+ // Import explicitly to avoid conflicts
98
109@Suite ( " Session Logging " , . tags( . diagnostics, . core) )
1110struct SessionLoggingTests {
@@ -206,13 +205,13 @@ struct SessionLoggingTests {
206205 @Test (
207206 " Category logger retrieval " ,
208207 arguments: [
209- LogCategory . app,
208+ Diagnostics . LogCategory. app,
210209 . auth,
211210 . api,
212211 . supervision,
213212 ]
214213 )
215- @MainActor func categoryLoggerRetrieval( category: LogCategory ) {
214+ @MainActor func categoryLoggerRetrieval( category: Diagnostics . LogCategory ) {
216215 let logManager = Diagnostics . LogManager. shared
217216 let logger = logManager. getLogger ( for: category)
218217
@@ -249,10 +248,10 @@ struct SessionLoggingTests {
249248 " Category-based logger creation " ,
250249 arguments: zip (
251250 [ String . self, Int . self, SessionLoggingTests . self] as [ Any . Type ] ,
252- [ LogCategory . app, . api, . supervision]
251+ [ Diagnostics . LogCategory. app, . api, . supervision]
253252 )
254253 )
255- func categoryBasedLoggerCreation( type: Any . Type , category: LogCategory ) {
254+ func categoryBasedLoggerCreation( type: Any . Type , category: Diagnostics . LogCategory ) {
256255 let logger = LoggerFactory . logger ( for: type, category: category)
257256
258257 #expect( throws: Never . self) {
0 commit comments