/// <summary>
/// Simple wrapper around the log4net Error method.
/// </summary>
/// <param name="exception"></param>
/// <param name="messageFormat"></param>
/// <param name="args"></param>
public override void Error(Exception exception, string messageFormat, params object[] args)
{
LogMessage msg = new LogMessage(CultureInfo.InvariantCulture, messageFormat, args);
#if __ANDROID__
Android.Util.Log.Error(DeclaringType.Name, msg.ToString());
if (exception != null)
{
Android.Util.Log.Error(DeclaringType.Name, exception.ToString());
}
#else
Console.WriteLine(string.Format(DebugMsg, "Exception is: " + exception.ToString() + " Message is: " +msg.ToString()));
#endif
}