private static void Log(RaygunLogLevel level, string message) { // Ensure we only print messages within our log level. if (level <= RaygunSettings.Settings.LogLevel) { try { Console.WriteLine(message); } catch (Exception) { } } }
private static void Log(RaygunLogLevel level, string message) { // Ensure we only print messages within our log level. if (level <= RaygunSettings.Settings.LogLevel) { try { using (var ns = new NSString(message)) { NSLog(format.Handle, ns.Handle); } } catch (Exception) { } } }
private void Log(RaygunLogLevel level, string message) { if (RaygunSettings.Settings.LogLevel == RaygunLogLevel.None) { return; } if (level <= RaygunSettings.Settings.LogLevel) { try { Trace.WriteLine($"{RaygunPrefix}{message}"); } catch { // ignored } } }