public void Error(Exception cause, string format, params object[] args)
{
if (!IsErrorEnabled)
return;
if (args == null || args.Length == 0)
{
NotifyError(cause, format);
}
else
{
NotifyError(cause, new LogMessage(_logMessageFormatter, format, args));
}
}