NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions Class Reference

Extension methods for the ILog interface. More...

Static Public Member Functions

static bool IsDebugEnabled (this ILog logger)
 Check if the LogLevel.Debug log level is enabled. More...
 
static bool IsErrorEnabled (this ILog logger)
 Check if the LogLevel.Error log level is enabled. More...
 
static bool IsFatalEnabled (this ILog logger)
 Check if the LogLevel.Fatal log level is enabled. More...
 
static bool IsInfoEnabled (this ILog logger)
 Check if the LogLevel.Info log level is enabled. More...
 
static bool IsTraceEnabled (this ILog logger)
 Check if the LogLevel.Trace log level is enabled. More...
 
static bool IsWarnEnabled (this ILog logger)
 Check if the LogLevel.Warn log level is enabled. More...
 
static void Debug (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Debug log level, if enabled. More...
 
static void Debug (this ILog logger, string message)
 Logs a message at the LogLevel.Debug log level, if enabled. More...
 
static void Debug (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Debug log level, if enabled. More...
 
static void Debug (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Debug log level, if enabled. More...
 
static void DebugFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Debug log level, if enabled. More...
 
static void DebugException (this ILog logger, string message, Exception exception)
 Logs an exception at the LogLevel.Debug log level, if enabled. More...
 
static void DebugException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Debug log level, if enabled. More...
 
static void Error (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Error log level, if enabled. More...
 
static void Error (this ILog logger, string message)
 Logs a message at the LogLevel.Error log level, if enabled. More...
 
static void Error (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Error log level, if enabled. More...
 
static void Error (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Error log level, if enabled. More...
 
static void ErrorFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Error log level, if enabled. More...
 
static void ErrorException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Error log level, if enabled. More...
 
static void Fatal (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Fatal log level, if enabled. More...
 
static void Fatal (this ILog logger, string message)
 Logs a message at the LogLevel.Fatal log level, if enabled. More...
 
static void Fatal (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Fatal log level, if enabled. More...
 
static void Fatal (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Fatal log level, if enabled. More...
 
static void FatalFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Fatal log level, if enabled. More...
 
static void FatalException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Fatal log level, if enabled. More...
 
static void Info (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Info log level, if enabled. More...
 
static void Info (this ILog logger, string message)
 Logs a message at the LogLevel.Info log level, if enabled. More...
 
static void Info (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Info log level, if enabled. More...
 
static void Info (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Info log level, if enabled. More...
 
static void InfoFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Info log level, if enabled. More...
 
static void InfoException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Info log level, if enabled. More...
 
static void Trace (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Trace log level, if enabled. More...
 
static void Trace (this ILog logger, string message)
 Logs a message at the LogLevel.Trace log level, if enabled. More...
 
static void Trace (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Trace log level, if enabled. More...
 
static void Trace (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Trace log level, if enabled. More...
 
static void TraceFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Trace log level, if enabled. More...
 
static void TraceException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Trace log level, if enabled. More...
 
static void Warn (this ILog logger, Func< string > messageFunc)
 Logs a message at the LogLevel.Warn log level, if enabled. More...
 
static void Warn (this ILog logger, string message)
 Logs a message at the LogLevel.Warn log level, if enabled. More...
 
static void Warn (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Warn log level, if enabled. More...
 
static void Warn (this ILog logger, Exception exception, string message, params object[] args)
 Logs an exception at the LogLevel.Warn log level, if enabled. More...
 
static void WarnFormat (this ILog logger, string message, params object[] args)
 Logs a message at the LogLevel.Warn log level, if enabled. More...
 
static void WarnException (this ILog logger, string message, Exception exception, params object[] args)
 Logs an exception at the LogLevel.Warn log level, if enabled. More...
 

Detailed Description

Extension methods for the ILog interface.

Member Function Documentation

◆ Debug() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Debug ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Debug() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Debug ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Debug() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Debug ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Debug() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Debug ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ DebugException() [1/2]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.DebugException ( this ILog  logger,
string  message,
Exception  exception 
)
static

Logs an exception at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.

◆ DebugException() [2/2]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.DebugException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ DebugFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.DebugFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Debug log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Error() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Error ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Error() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Error ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Error() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Error ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Error() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Error ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ ErrorException()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.ErrorException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ ErrorFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.ErrorFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Error log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Fatal() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Fatal ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Fatal() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Fatal ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Fatal() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Fatal ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Fatal() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Fatal ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ FatalException()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.FatalException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ FatalFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.FatalFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Fatal log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Info() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Info ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Info() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Info ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Info() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Info ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Info() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Info ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ InfoException()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.InfoException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ InfoFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.InfoFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Info log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ IsDebugEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsDebugEnabled ( this ILog  logger)
static

Check if the LogLevel.Debug log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ IsErrorEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsErrorEnabled ( this ILog  logger)
static

Check if the LogLevel.Error log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ IsFatalEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsFatalEnabled ( this ILog  logger)
static

Check if the LogLevel.Fatal log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ IsInfoEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsInfoEnabled ( this ILog  logger)
static

Check if the LogLevel.Info log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ IsTraceEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsTraceEnabled ( this ILog  logger)
static

Check if the LogLevel.Trace log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ IsWarnEnabled()

static bool AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.IsWarnEnabled ( this ILog  logger)
static

Check if the LogLevel.Warn log level is enabled.

Parameters
loggerThe ILog to check with.
Returns
True if the log level is enabled; false otherwise.

◆ Trace() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Trace ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Trace() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Trace ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Trace() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Trace ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Trace() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Trace ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ TraceException()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.TraceException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ TraceFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.TraceFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Trace log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Warn() [1/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Warn ( this ILog  logger,
Func< string >  messageFunc 
)
static

Logs a message at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
messageFuncThe message function.

◆ Warn() [2/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Warn ( this ILog  logger,
string  message 
)
static

Logs a message at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.

◆ Warn() [3/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Warn ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

◆ Warn() [4/4]

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.Warn ( this ILog  logger,
Exception  exception,
string  message,
params object []  args 
)
static

Logs an exception at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
exceptionThe exception.
messageThe message.
argsOptional format parameters for the message.

◆ WarnException()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.WarnException ( this ILog  logger,
string  message,
Exception  exception,
params object []  args 
)
static

Logs an exception at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
exceptionThe exception.
argsOptional format parameters for the message.

◆ WarnFormat()

static void AlexanderOnTest.NetCoreWebDriverFactory.Logging.LogExtensions.WarnFormat ( this ILog  logger,
string  message,
params object []  args 
)
static

Logs a message at the LogLevel.Warn log level, if enabled.

Parameters
loggerThe ILog to use.
messageThe message.
argsOptional format parameters for the message.

The documentation for this class was generated from the following file: