Aspose::Email::Tools::Logging::ConsoleAppender Class Reference

Represents an appender for console output. More...

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

Public Member Functions

 ConsoleAppender ()
 Initializes a new instance of the ConsoleAppender class. More...
 
void Append (System::SharedPtr< LogEntry > entry) override
 Appends the specified log entry to the appender. 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 an appender for console output.

Constructor & Destructor Documentation

◆ ConsoleAppender()

Aspose::Email::Tools::Logging::ConsoleAppender::ConsoleAppender ( )

Initializes a new instance of the ConsoleAppender class.

Member Function Documentation

◆ Append()

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

Appends the specified log entry to the appender.

Parameters
entryThe log entry.

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