mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[Console-Log]: Added raw console logging in ErrorLog section (ladybug icon)
This commit is contained in:
@@ -41,8 +41,14 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
private let intentHandler = IntentHandler()
|
||||
private let viewAppIntentHandler = ViewAppIntentHandler()
|
||||
|
||||
public let consoleLog = ConsoleLog()
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
|
||||
{
|
||||
|
||||
// start logging to console immediately on startup
|
||||
consoleLog.startCapturing()
|
||||
|
||||
// Override point for customization after application launch.
|
||||
// UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.MigrationDebug")
|
||||
// UserDefaults.standard.setValue(true, forKey: "com.apple.CoreData.SQLDebug")
|
||||
@@ -130,6 +136,11 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
default: return nil
|
||||
}
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ application: UIApplication) {
|
||||
// Stop console logging and clean up resources
|
||||
consoleLog.stopCapturing()
|
||||
}
|
||||
}
|
||||
|
||||
extension AppDelegate
|
||||
|
||||
Reference in New Issue
Block a user