Class Logger
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: IronSoftware
Assembly: IronPdf.dll
Syntax
public static class Logger
Properties
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
Type | Description |
---|---|
Logger.LoggingModes |
Methods
ClearLogs()
Declaration
public static void ClearLogs()
Log(Exception, ConsoleColor)
Declaration
public static void Log(Exception exception, ConsoleColor color = ConsoleColor.DarkRed)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | |
System.ConsoleColor | color |
Log(String, ConsoleColor)
Declaration
public static void Log(string message, ConsoleColor color = ConsoleColor.DarkYellow)
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 = ConsoleColor.DarkRed)
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> |
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)