Provides the logging functionality. More...
Inherits IDisposable.
Public Member Functions | |
| System::SharedPtr< LogLevel > | get_Severity () const |
| Gets severity. More... | |
| void | set_Severity (System::SharedPtr< LogLevel > value) |
| Sets severity. More... | |
| System::String | get_Name () const |
| Gets name. More... | |
| System::SharedPtr< AppenderCollection > | get_Appenders () const |
| Gets the appender list. More... | |
| void | set_Appenders (System::SharedPtr< AppenderCollection > value) |
| Sets the appender list. More... | |
| Logger () | |
| Logger (System::String name, System::SharedPtr< LogLevel > severity, const System::ArrayPtr< System::SharedPtr< IAppender >> &appender) | |
| bool | IsEnabled (System::SharedPtr< LogLevel > level) |
| Determines if logging is enabled for the specified level. More... | |
| void | WriteLine () |
| Writes the empty line to appenders. More... | |
| void | WriteLine (System::String message) |
| Writes the specified message to appenders. More... | |
| void | WriteLine (System::SharedPtr< System::Object > message) |
| Writes the specified message to appenders. More... | |
| void | WriteFormat (System::String format, const System::ArrayPtr< System::SharedPtr< System::Object >> &arguments) |
| Writes the message with specified format to appenders. More... | |
| void | Write (System::String message) |
| Writes the specified message to appenders. More... | |
| void | Write (System::String message, System::Exception exception) |
| Writes the specified message and exception to appenders. More... | |
| void | Write (System::String message, System::Exception ex, System::SharedPtr< LogLevel > level) |
| Writes the specified message and exception to appenders. More... | |
| void | Write (System::SharedPtr< System::Object > message) |
| Writes the specified message to appenders. More... | |
| void | WriteIf (bool condition, System::String message) |
| Writes the specified message to appenders if condition is true. More... | |
| void | WriteIf (bool condition, System::SharedPtr< System::Object > message) |
| Writes the specified message to appenders if condition is true. More... | |
| void | WriteIf (bool condition, System::SharedPtr< System::Object > message, System::Exception exception) |
| Writes the specified message and exception to appenders if condition is true. More... | |
| void | WriteIf (System::SharedPtr< LogLevel > condition, System::String message) |
| Writes the specified message if the log level is enabled. More... | |
| void | WriteIf (System::SharedPtr< LogLevel > condition, System::String message, System::Exception exception) |
| Writes the specified message and exception if the log level is enabled. More... | |
| void | Dispose () override |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Static Public Member Functions | |
| static System::SharedPtr< Logger > | get_Debug () |
| Gets the debug logger. More... | |
Provides the logging functionality.
| Aspose::Email::Tools::Logging::Logger::Logger | ( | ) |
| Aspose::Email::Tools::Logging::Logger::Logger | ( | System::String | name, |
| System::SharedPtr< LogLevel > | severity, | ||
| const System::ArrayPtr< System::SharedPtr< IAppender >> & | appender | ||
| ) |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| System::SharedPtr<AppenderCollection> Aspose::Email::Tools::Logging::Logger::get_Appenders | ( | ) | const |
Gets the appender list.
|
static |
Gets the debug logger.
| System::String Aspose::Email::Tools::Logging::Logger::get_Name | ( | ) | const |
Gets name.
| System::SharedPtr<LogLevel> Aspose::Email::Tools::Logging::Logger::get_Severity | ( | ) | const |
Gets severity.
| bool Aspose::Email::Tools::Logging::Logger::IsEnabled | ( | System::SharedPtr< LogLevel > | level | ) |
Determines if logging is enabled for the specified level.
| level | level to be checked |
trueif logging is enabled for the specified level, otherwise it returns false
.
| void Aspose::Email::Tools::Logging::Logger::set_Appenders | ( | System::SharedPtr< AppenderCollection > | value | ) |
Sets the appender list.
| void Aspose::Email::Tools::Logging::Logger::set_Severity | ( | System::SharedPtr< LogLevel > | value | ) |
Sets severity.
| void Aspose::Email::Tools::Logging::Logger::Write | ( | System::SharedPtr< System::Object > | message | ) |
Writes the specified message to appenders.
| message | The message to write. |
| void Aspose::Email::Tools::Logging::Logger::Write | ( | System::String | message | ) |
Writes the specified message to appenders.
| message | The message to write. |
| void Aspose::Email::Tools::Logging::Logger::Write | ( | System::String | message, |
| System::Exception | ex, | ||
| System::SharedPtr< LogLevel > | level | ||
| ) |
Writes the specified message and exception to appenders.
| message | The message to write. |
| ex | The exception to write. |
| level | The log level. |
| void Aspose::Email::Tools::Logging::Logger::Write | ( | System::String | message, |
| System::Exception | exception | ||
| ) |
Writes the specified message and exception to appenders.
| message | The message to write. |
| exception | The exception to write. |
| void Aspose::Email::Tools::Logging::Logger::WriteFormat | ( | System::String | format, |
| const System::ArrayPtr< System::SharedPtr< System::Object >> & | arguments | ||
| ) |
Writes the message with specified format to appenders.
| format | |
| arguments |
| void Aspose::Email::Tools::Logging::Logger::WriteIf | ( | bool | condition, |
| System::SharedPtr< System::Object > | message | ||
| ) |
Writes the specified message to appenders if condition is true.
| condition | The condition to test. |
| message | The message to write. |
| void Aspose::Email::Tools::Logging::Logger::WriteIf | ( | bool | condition, |
| System::SharedPtr< System::Object > | message, | ||
| System::Exception | exception | ||
| ) |
Writes the specified message and exception to appenders if condition is true.
| condition | The condition to test. |
| message | The message to write. |
| exception | The exception to write. |
| void Aspose::Email::Tools::Logging::Logger::WriteIf | ( | bool | condition, |
| System::String | message | ||
| ) |
Writes the specified message to appenders if condition is true.
| condition | The condition to test. |
| message | The message to write. |
| void Aspose::Email::Tools::Logging::Logger::WriteIf | ( | System::SharedPtr< LogLevel > | condition, |
| System::String | message | ||
| ) |
Writes the specified message if the log level is enabled.
| condition | The log level. |
| message | The message to log. |
| void Aspose::Email::Tools::Logging::Logger::WriteIf | ( | System::SharedPtr< LogLevel > | condition, |
| System::String | message, | ||
| System::Exception | exception | ||
| ) |
Writes the specified message and exception if the log level is enabled.
| condition | The log level. |
| message | The message to log. |
| exception | The exception to log. |
| void Aspose::Email::Tools::Logging::Logger::WriteLine | ( | ) |
Writes the empty line to appenders.
| void Aspose::Email::Tools::Logging::Logger::WriteLine | ( | System::SharedPtr< System::Object > | message | ) |
Writes the specified message to appenders.
| message | The message to write. |
| void Aspose::Email::Tools::Logging::Logger::WriteLine | ( | System::String | message | ) |
Writes the specified message to appenders.
| message | The message to write. |