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< IFormatter > | get_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... | |
Represents the default implementation of IFormatter interface.
Aspose::Email::Tools::Logging::SimpleFormatter::SimpleFormatter | ( | ) |
Creates a new SimpleFormatter instance.
Aspose::Email::Tools::Logging::SimpleFormatter::SimpleFormatter | ( | System::String | header, |
System::String | footer | ||
) |
Creates a new SimpleFormatter instance.
header | The header. |
footer | The footer. |
|
protectedvirtual |
|
overridevirtual |
Formats a datetime and return a string to be outputted.
datatime | The datetime value for formatting to string |
Reimplemented from Aspose::Email::Tools::Logging::Formatter.
|
overridevirtual |
Formats a log entry and return a string to be outputted.
entry | Log entry to format. |
Reimplemented from Aspose::Email::Tools::Logging::Formatter.