17 using System.Globalization;
32 public static void Error(
this ILogHandler logHandler,
string text, params
object[] args)
34 if (logHandler ==
null)
36 throw new ArgumentNullException(nameof(logHandler),
"Log Handler cannot be null");
39 logHandler.
Error(
string.Format(CultureInfo.InvariantCulture, text, args));
48 public static void Debug(
this ILogHandler logHandler,
string text, params
object[] args)
50 if (logHandler ==
null)
52 throw new ArgumentNullException(nameof(logHandler),
"Log Handler cannot be null");
55 logHandler.
Debug(
string.Format(CultureInfo.InvariantCulture, text, args));
64 public static void Trace(
this ILogHandler logHandler,
string text, params
object[] args)
66 if (logHandler ==
null)
68 throw new ArgumentNullException(nameof(logHandler),
"Log Handler cannot be null");
71 logHandler.
Trace(
string.Format(CultureInfo.InvariantCulture, text, args));