Aspose::Email::Tools::Logging::IFormatter Class Referenceabstract

Represents the interface for formatting log entry messsages. More...

Inherits Object.

Inherited by Aspose::Email::Tools::Logging::Formatter.

Public Member Functions

virtual System::String get_LogHeader ()=0
 Represents start log header More...
 
virtual System::String get_Header ()=0
 Gets the header string. More...
 
virtual System::String get_Footer ()=0
 Gest the footer string. More...
 
virtual System::String Format (System::SharedPtr< LogEntry > entry)=0
 Formats a log entry and return a string to be outputted. More...
 
virtual System::String Format (System::DateTime datatime)=0
 Formats a datetime and return a string to be outputted. More...
 

Detailed Description

Represents the interface for formatting log entry messsages.

Member Function Documentation

◆ Format() [1/2]

virtual System::String Aspose::Email::Tools::Logging::IFormatter::Format ( System::DateTime  datatime)
pure virtual

Formats a datetime and return a string to be outputted.

Parameters
datatimeThe datetime value for formatting to string

Implemented in Aspose::Email::Tools::Logging::SimpleFormatter, and Aspose::Email::Tools::Logging::Formatter.

◆ Format() [2/2]

virtual System::String Aspose::Email::Tools::Logging::IFormatter::Format ( System::SharedPtr< LogEntry entry)
pure virtual

Formats a log entry and return a string to be outputted.

Parameters
entryThe Log entry to format.
Returns
String representing the log entry.

Implemented in Aspose::Email::Tools::Logging::StandardFormatter, Aspose::Email::Tools::Logging::SimpleFormatter, Aspose::Email::Tools::Logging::Formatter, and Aspose::Email::Tools::Logging::DebugFormatter.

◆ get_Footer()

virtual System::String Aspose::Email::Tools::Logging::IFormatter::get_Footer ( )
pure virtual

◆ get_Header()

virtual System::String Aspose::Email::Tools::Logging::IFormatter::get_Header ( )
pure virtual

◆ get_LogHeader()

virtual System::String Aspose::Email::Tools::Logging::IFormatter::get_LogHeader ( )
pure virtual

Represents start log header

Implemented in Aspose::Email::Tools::Logging::Formatter.