NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILog Interface Reference

Simple interface that represent a logger. More...

Inheritance diagram for AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILog:
AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LoggerExecutionWrapper

Public Member Functions

bool Log (LogLevel logLevel, Func< string > messageFunc, Exception exception=null, params object[] formatParameters)
 Log a message the specified log level. More...
 

Detailed Description

Simple interface that represent a logger.

Member Function Documentation

◆ Log()

bool AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.ILog.Log ( LogLevel  logLevel,
Func< string >  messageFunc,
Exception  exception = null,
params object []  formatParameters 
)

Log a message the specified log level.

Parameters
logLevelThe log level.
messageFuncThe message function.
exceptionAn optional exception.
formatParametersOptional format parameters for the message generated by the messagefunc.
Returns
true if the message was logged. Otherwise false.

Note to implementers: the message func should not be called if the loglevel is not enabled so as not to incur performance penalties. To check IsEnabled call Log with only LogLevel and check the return value, no event will be written.

Implemented in AlexanderOnTest.WebDriverFactoryNunitConfig.Logging.LoggerExecutionWrapper.


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