From e7c56274e6f23aad23204f0b013f9b6614c0b3fb Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Thu, 26 Aug 2021 09:55:24 +0200 Subject: [PATCH] Update BridgeConnector.cs --- ElectronNET.API/BridgeConnector.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ElectronNET.API/BridgeConnector.cs b/ElectronNET.API/BridgeConnector.cs index 030ce80..7cc405e 100644 --- a/ElectronNET.API/BridgeConnector.cs +++ b/ElectronNET.API/BridgeConnector.cs @@ -130,6 +130,18 @@ namespace ElectronNET.API } } + internal static void LogError(Exception E, string formatString, params object[] args) + { + if (Logger is object) + { + Logger.LogError(E, formatString, args); + } + else + { + Console.WriteLine(formatString, args); + } + } + /// /// This method is only used on places where we need to be sure the event was sent on the socket, such as Quit, Exit, Relaunch and QuitAndInstall methods ///