Aspose::Email::Tools::Logging::NullAppender Class Referencefinal

Represents a do-nothing appender. More...

Inherits Aspose::Email::Tools::Logging::Appender.

Public Member Functions

 NullAppender ()
 Creates a new instace of NullAppender. More...
 
void Append (System::SharedPtr< LogEntry > entry) override
 Appends a log entry to NullAppender. More...
 
- Public Member Functions inherited from Aspose::Email::Tools::Logging::Appender
System::SharedPtr< IFormatterget_Formatter () override
 Gets the formatter. More...
 
void set_Formatter (System::SharedPtr< IFormatter > value) override
 Sets the formatter. More...
 
void AppendHeader () override
 Starts log file with specific header. More...
 
virtual void Close ()
 Closes the appender. More...
 
virtual void Initialize ()
 Initializes the appender instance. More...
 
virtual void OnClose ()
 
virtual void OnInitialize ()
 
void Dispose () override
 Releases the unmanaged resources used by the Appender. More...
 
virtual ~Appender ()
 

Additional Inherited Members

- Protected Member Functions inherited from Aspose::Email::Tools::Logging::Appender
bool get_Initialized () const
 Indicates whether an Appender is initialized. More...
 
bool get_Closed () const
 Indicates whether an Appender is closed. More...
 
 Appender ()
 Inistializes a new instance of Appender class. More...
 
 Appender (System::SharedPtr< IFormatter > formatter)
 Inistializes a new instance of Appender class. More...
 
virtual void Dispose (bool disposing)
 Releases the unmanaged resources used by the Appender, and optionally disposes of the managed resources. More...
 

Detailed Description

Represents a do-nothing appender.

Constructor & Destructor Documentation

◆ NullAppender()

Aspose::Email::Tools::Logging::NullAppender::NullAppender ( )

Creates a new instace of NullAppender.

Member Function Documentation

◆ Append()

void Aspose::Email::Tools::Logging::NullAppender::Append ( System::SharedPtr< LogEntry entry)
overridevirtual

Appends a log entry to NullAppender.

Parameters
entryThe entry need to log.

Implements Aspose::Email::Tools::Logging::Appender.