public void Debug(string format, params object[] args) { if (!IsDebugEnabled) return; if (args == null || args.Length == 0) { NotifyDebug(format); } else { NotifyDebug(new LogMessage(_logMessageFormatter, format, args)); } }