Class Logger
Inheritance
System.Object
Logger
Assembly: IronPdf.dll
Syntax
public static class Logger : Object
Properties
CustomLogger
Declaration
public static ILogger CustomLogger { get; set; }
Property Value
Type |
Description |
Microsoft.Extensions.Logging.ILogger |
|
LogFilePath
Declaration
public static string LogFilePath { get; set; }
Property Value
Type |
Description |
System.String |
|
LoggingMode
Declaration
public static Logger.LoggingModes LoggingMode { get; set; }
Property Value
Methods
ClearLogs()
Declaration
public static void ClearLogs()
Log(Exception, ConsoleColor)
Declaration
public static void Log(Exception exception, ConsoleColor color)
Parameters
Type |
Name |
Description |
System.Exception |
exception |
|
System.ConsoleColor |
color |
|
Log(String, ConsoleColor)
Declaration
public static void Log(string message, ConsoleColor color)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.ConsoleColor |
color |
|
Log(String, Exception, ConsoleColor)
Declaration
public static void Log(string message, Exception exception, ConsoleColor color)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Exception |
exception |
|
System.ConsoleColor |
color |
|
LogAndThrow(Exception)
Declaration
public static Exception LogAndThrow(this Exception exception)
Parameters
Type |
Name |
Description |
System.Exception |
exception |
|
Returns
Type |
Description |
System.Exception |
|
Events
MessageLogged
Declaration
public static event Action<string> MessageLogged
Event Type
Type |
Description |
System.Action<System.String> |
|