示例#1
0
 /// <summary>
 /// Creates and fires an info level log entry.
 /// </summary>
 /// <param name="logHub">The current log hub to log the entry.</param>
 /// <param name="message">The message to be logged.</param>
 /// <param name="error">The error message to be logged. Optional.</param>
 /// <param name="callerFile">Full path to the caller's file. Automatically filled.</param>
 /// <param name="callerMember">The caller's member name (function name). Automatically filled.</param>
 /// <param name="callerLineNumber">The caller's executing line number. Automatically filled.</param>
 public static void Info(this ILogHub logHub, string message, Exception error = null,
                         [CallerFilePath] string callerFile      = null,
                         [CallerMemberName] string callerMember  = null,
                         [CallerLineNumber] int callerLineNumber = 0)
 {
     logHub.Log(LogLevel.Info, message, error, callerFile, callerMember, callerLineNumber);
 }
示例#2
0
 public NotificationService(ILogHub logHub, IEventLogBusiness eventLogBusiness)
 {
     _logHub           = logHub;
     _eventLogBusiness = eventLogBusiness;
 }