Serilog.Sinks.File.IOErrors static class IOErrors Documentation Code public static bool IsLockedFile(IOException ex)