Exemple #1
0
 /// <summary>
 /// Writes the specified exception as debug message followed by the specified message.
 /// </summary>
 /// <param name="this">
 /// The log
 /// </param>
 /// <param name="exception">
 /// The exception.
 /// </param>
 /// <param name="priority">
 /// </param>
 /// <param name="messageFormat">
 /// The message format.
 /// </param>
 /// <param name="args">
 /// The formatting arguments.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="exception"/> is <c>null</c>.
 /// </exception>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="messageFormat"/> is <c>null</c>.
 /// </exception>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="this"/> is <c>null</c>.
 /// </exception>
 public static void Debug(this ILog @this, Exception exception, Priority priority = Priority.None, string messageFormat = "", params object[] args)
 {
     Argument.IsNotNull("@this", @this);
     Argument.IsNotNull("exception", exception);
     Argument.IsNotNull("messageFormat", messageFormat);
     @this.Debug(exception, string.Format(PriorityPrefixPattern, priority)  + " " + messageFormat, args);
 }
Exemple #2
0
 /// <summary>
 /// Writes the specified message as debug message.
 /// </summary>
 /// <param name="this">
 /// The log
 /// </param>
 /// <param name="priority">
 /// The priority
 /// </param>
 /// <param name="messageFormat">
 /// The message format.
 /// </param>
 /// <param name="args">
 /// The formatting arguments.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// The <paramref name="messageFormat"/> is <c>null</c>.
 /// </exception>
 /// <exception cref="System.ArgumentNullException">
 /// The <paramref name="this"/> is <c>null</c>.
 /// </exception>
 public static void Debug(this ILog @this, Priority priority, string messageFormat, params object[] args)
 {
     Argument.IsNotNull("@this", @this);
     Argument.IsNotNull("messageFormat", messageFormat);
     @this.Debug(string.Format(PriorityPrefixPattern, priority)  + " " + messageFormat, args);
 }