private static void Logger_OnMessageLogged(ProtocolAbstractionLibraryD.LogMessage Msg) { switch (Msg.Level) { case ProtocolAbstractionLibraryD.LogLevel.info: Logger.LogInfo(Msg.Message); break; case ProtocolAbstractionLibraryD.LogLevel.error: Logger.LogDebug(Msg.Message); break; case ProtocolAbstractionLibraryD.LogLevel.warn: Logger.LogWarning(Msg.Message); break; } }
private void Logger_OnMessageLogged(ProtocolAbstractionLibraryD.LogMessage Msg) { switch (Msg.Level) { case ProtocolAbstractionLibraryD.LogLevel.error: Log.LogThis(Msg.Message, eloglevel.error); break; case ProtocolAbstractionLibraryD.LogLevel.info: Log.LogThis(Msg.Message, eloglevel.info); break; case ProtocolAbstractionLibraryD.LogLevel.warn: Log.LogThis(Msg.Message, eloglevel.warn); break; } }