public void Warn(object message) { if (!IsWarnEnabled) { return; } WarnMethod.Invoke(_logger, new[] { message }); }
public void WarnFormat(string format, params object[] args) { if (!IsWarnEnabled) { return; } string message = String.Format(format, args); WarnMethod.Invoke(_logger, new object[] { message }); }