-
Notifications
You must be signed in to change notification settings - Fork 477
Open
Description
Duplicate logs getting created
Issue
When we added the log in the code, the logs are getting created twice. I have tried adding the log on Delegate its still printing the logs twice in the console.
- Xcode: 14.2 (Rosetta)
- XCGLogger version: 7.2.0
- swift: 5
enabledDestinations.count is 3 for one log registered which is printing two message on the console.
You can see the console the message Theater loaded successfully 🎉 theater: is printed twice on the console.
The LOG is triggered only once in the code.
But in the XCLogger Class the function
open func logln(_ level: Level = .debug, functionName: String = #function, fileName: String = #file, lineNumber: Int = #line, userInfo: [String: Any] = [:], closure: () -> Any?)is creating duplicate logs in the terminal, which is causing issue in debugging the source code.
It looks like there is bug in the login function which is causing the logs to get generated twice.
Required Result
Print the log only once in the terminal and do not create duplicate of it
sanojkashyap007 and xzenon
Metadata
Metadata
Assignees
Labels
No labels