public override void Flush () { string s = sb.ToString (); try { monotouch_log (s); } catch (Exception) { try { direct_write_to_stdout (s); direct_write_to_stdout (Environment.NewLine); } catch (Exception){} } sb.Length = 0; }