Aspose::Email::Tools::Logging::SimpleFormatter Class Referencefinal

Represents the default implementation of IFormatter interface. More...

Inherits Aspose::Email::Tools::Logging::Formatter.

Public Member Functions

 SimpleFormatter ()
 Creates a new SimpleFormatter instance. More...
 
 SimpleFormatter (System::String header, System::String footer)
 Creates a new SimpleFormatter instance. More...
 
System::String Format (System::SharedPtr< LogEntry > entry) override
 Formats a log entry and return a string to be outputted. More...
 
System::String Format (System::DateTime datatime) override
 Formats a datetime and return a string to be outputted. More...
 
- Public Member Functions inherited from Aspose::Email::Tools::Logging::Formatter
System::String get_Header () override
 Gets the header. More...
 
virtual void set_Header (System::String value)
 Sets the header. More...
 
System::String get_Footer () override
 Gets the footer. More...
 
virtual void set_Footer (System::String value)
 Sets the footer. More...
 
System::String get_LogHeader () override
 Gets the log header More...
 
virtual void set_LogHeader (System::String value)
 Sets the log header More...
 

Protected Member Functions

virtual ~SimpleFormatter ()
 
- Protected Member Functions inherited from Aspose::Email::Tools::Logging::Formatter
 Formatter ()
 Creates an instance of Formatter. More...
 
 Formatter (System::SharedPtr< System::Text::StringBuilder > logHeaderText)
 Initializes a new instance of the Formatter class. More...
 
 Formatter (System::String logHeaderText)
 Initializes a new instance of the Formatter class. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Aspose::Email::Tools::Logging::Formatter
static System::SharedPtr< IFormatterget_DefaultFormatter ()
 Gets default formatter More...
 
static void set_DefaultFormatter (System::SharedPtr< IFormatter > value)
 Sets default formatter More...
 
static System::ArrayPtr< System::String > get_MonthNames ()
 The full names of all 12 months More...
 
static System::ArrayPtr< System::String > get_MonthShortNames ()
 The short names of all 12 months More...
 
static System::ArrayPtr< System::String > get_WeekdayNames ()
 The full names of all weekdays More...
 
static System::ArrayPtr< System::String > get_WeekdayShortNames ()
 The short names of all weekdays More...
 
static System::ArrayPtr< System::String > get_DateStrings ()
 
static System::ArrayPtr< System::String > get_MillisecondStrings ()
 
static System::ArrayPtr< System::String > get_YearStrings ()
 
- Static Public Attributes inherited from Aspose::Email::Tools::Logging::Formatter
static const System::String PasswordView
 
static const char16_t COLON_CHAR
 
static const char16_t HYPHEN_CHAR
 
static const char16_t PERIOD_CHAR
 
static const char16_t SPACE_CHAR
 
static System::String NEW_LINE
 
static System::String ISO_8601_TIME_ZONE
 The ISO 8601 standard time zone specification, showing hours offset from GMT (ex.: "-04:00") The value returned is correct for the local environment for all dates not in daylight savings time More...
 
static System::String ISO_8601_DAYLIGHT_SAVINGS_TIME_ZONE
 The ISO 8601 standard time zone specification, showing hours offset from GMT (ex.: "-04:00"). The value returned is correct for the local environment for all dates in daylight savings time More...
 

Detailed Description

Represents the default implementation of IFormatter interface.

Constructor & Destructor Documentation

◆ SimpleFormatter() [1/2]

Aspose::Email::Tools::Logging::SimpleFormatter::SimpleFormatter ( )

Creates a new SimpleFormatter instance.

◆ SimpleFormatter() [2/2]

Aspose::Email::Tools::Logging::SimpleFormatter::SimpleFormatter ( System::String  header,
System::String  footer 
)

Creates a new SimpleFormatter instance.

Parameters
headerThe header.
footerThe footer.

◆ ~SimpleFormatter()

virtual Aspose::Email::Tools::Logging::SimpleFormatter::~SimpleFormatter ( )
protectedvirtual

Member Function Documentation

◆ Format() [1/2]

System::String Aspose::Email::Tools::Logging::SimpleFormatter::Format ( System::DateTime  datatime)
overridevirtual

Formats a datetime and return a string to be outputted.

Parameters
datatimeThe datetime value for formatting to string

Reimplemented from Aspose::Email::Tools::Logging::Formatter.

◆ Format() [2/2]

System::String Aspose::Email::Tools::Logging::SimpleFormatter::Format ( System::SharedPtr< LogEntry entry)
overridevirtual

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

Parameters
entryLog entry to format.
Returns
String representing the log entry.

Reimplemented from Aspose::Email::Tools::Logging::Formatter.