private bool ShouldLog(ILog logger, LoggingLevel loggingLevel, MethodBase methodBase) { if (methodBase != null && methodBase.Name != null) { return logger.IsEnabledFor(loggingLevel); } return false; }
private bool ShouldLog(ILog logger, LoggingLevel loggingLevel, MethodExecutionEventArgs args) { if (args != null && args.Method != null && args.Method.Name != null) { return logger.IsEnabledFor(loggingLevel); } return false; }