Logger Class

Provides the logging functionality.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Tools.LoggingLogger

Namespace:  Aspose.Email.Tools.Logging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.11
Syntax
public sealed class Logger : IDisposable

The Logger type exposes the following members.

Properties
  NameDescription
Public propertyAppenders
Gets or sets the appender list.
Public propertyStatic memberDebug
Gets the debug logger.
Public propertyName
Gets or sets name.
Public propertySeverity
Gets or sets severity.
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEnabled
Determines if logging is enabled for the specified level.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(Object)
Writes the specified message to appenders.
Public methodWrite(String)
Writes the specified message to appenders.
Public methodWrite(String, Exception)
Writes the specified message and exception to appenders.
Public methodWrite(String, Exception, LogLevel)
Writes the specified message and exception to appenders.
Public methodWriteFormat
Writes the message with specified format to appenders.
Public methodWriteIf(Boolean, Object)
Writes the specified message to appenders if condition is true.
Public methodWriteIf(Boolean, String)
Writes the specified message to appenders if condition is true.
Public methodWriteIf(LogLevel, String)
Writes the specified message if the log level is enabled.
Public methodWriteIf(Boolean, Object, Exception)
Writes the specified message and exception to appenders if condition is true.
Public methodWriteIf(LogLevel, String, Exception)
Writes the specified message and exception if the log level is enabled.
Public methodWriteLine
Writes the empty line to appenders.
Public methodWriteLine(Object)
Writes the specified message to appenders.
Public methodWriteLine(String)
Writes the specified message to appenders.
See Also