public static void Info <T>(this INDLogger logger, T message, Exception exception, IFormatProvider formatter, params object[] args) where T : class { if (logger == null) { throw new ArgumentNullException(logger.ToString()); } logger.Log(NDLogLevel.Information, message, exception, formatter, args); }
public void Write(string callerMemberName = null, string callerFilePath = null, int callerLineNumber = 0) { if (callerMemberName != null) { _data.MemberName = callerMemberName; } if (callerFilePath != null) { _data.FilePath = callerFilePath; } if (callerLineNumber != 0) { _data.LineNumber = callerLineNumber; } _logger.Log(LogData.LogLevel, LogData, LogData.Exception, _messageFormatter); }