Show / Hide Table of Contents

Class Logger

Logger class to be used. Reference 1: https://stackify.com/log4net-guide-dotnet-logging/ Reference 2: https://www.dotnetdepth.in/2018/06/how-to-use-log4net-in-net-core-20.html.

Inheritance
System.Object
Logger
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TestingDriver
Assembly: TestingDriver.dll
Syntax
public static class Logger

Methods

| Improve this Doc View Source

Debug(Object)

Allows the user to log a debug message.

Declaration
public static void Debug(object message)
Parameters
Type Name Description
System.Object message

The debug message to be logged.

| Improve this Doc View Source

Error(Object)

Allows the user to log an error message.

Declaration
public static void Error(object message)
Parameters
Type Name Description
System.Object message

The error message to be logged.

| Improve this Doc View Source

Fatal(Object)

Allows the user to log a fatal message.

Declaration
public static void Fatal(object message)
Parameters
Type Name Description
System.Object message

The fatal message to be logged.

| Improve this Doc View Source

GetLog4NetLogger()

Get Log4Net Logger.

Declaration
public static ILogger GetLog4NetLogger()
Returns
Type Description
Microsoft.Extensions.Logging.ILogger

An ILogger.

| Improve this Doc View Source

Info(Object)

Allows the user to log an info message.

Declaration
public static void Info(object message)
Parameters
Type Name Description
System.Object message

The info message to be logged.

| Improve this Doc View Source

Warn(Object)

Allows the user to log a warning message.

Declaration
public static void Warn(object message)
Parameters
Type Name Description
System.Object message

The warning message to be logged.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX