Ejemplo n.º 1
0
 public static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName = null)
 {
     DebugValidateArg(thisOrContextObject);
     DebugValidateArg(formattableString);
     if (IsEnabled)
     {
         Log.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(formattableString));
     }
 }
Ejemplo n.º 2
0
 public static void Error(Exception exception, [CallerMemberName] string?memberName = null) =>
 Log.ErrorMessage(memberName ?? "(?)", exception.ToString());
Ejemplo n.º 3
0
 public static void Error(object?thisOrContextObject, FormattableString formattableString, [CallerMemberName] string?memberName = null) =>
 Log.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(formattableString));