Ejemplo n.º 1
0
 /// <summary>
 /// Log a message at Debug level
 /// </summary>
 /// <param name="logger">extended logger</param>
 /// <param name="exception">exception</param>
 /// <param name="message">message</param>
 /// <param name="line">compiler injected line number</param>
 /// <param name="member">compiler injected class member</param>
 /// <param name="file">compiler injected file</param>
 public static void Debug([NotNull] this ILogger2 logger, Exception?exception, [Localizable(false)] string message, [CallerLineNumber] int?line = null, [CallerMemberName] string?member = null, [CallerFilePath] string?file = null)
 {
     logger.Debug(exception, () => message, line, member, file);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Log a message at Debug level
 /// </summary>
 /// <param name="logger">extended logger</param>
 /// <param name="message">message function for deferred evaluation</param>
 /// <param name="line">compiler injected line number</param>
 /// <param name="member">compiler injected class member</param>
 /// <param name="file">compiler injected file</param>
 public static void Debug([NotNull] this ILogger2 logger, Func <string> message, [CallerLineNumber] int?line = null, [CallerMemberName] string?member = null, [CallerFilePath] string?file = null)
 {
     logger.Debug(null, message, line, member, file);
 }