Represents a log message. Contains the common properties that are required for all log messages. More...
Inherits Object.
Public Member Functions | |
System::String | get_Message () |
Message body to log. Value from ToString() method from message object. More... | |
void | set_Message (System::String value) |
Message body to log. Value from ToString() method from message object. More... | |
System::ArrayPtr< uint8_t > | get_BinaryDataMessage () const |
Binary message body to log. More... | |
void | set_BinaryDataMessage (System::ArrayPtr< uint8_t > value) |
Binary message body to log. More... | |
System::SharedPtr< System::Text::Encoding > | get_MessageEncoding () const |
Encoding for binary message body More... | |
void | set_MessageEncoding (System::SharedPtr< System::Text::Encoding > value) |
Encoding for binary message body More... | |
System::String | get_Category () const |
Category name used to route the log entry to a one or more sinks. More... | |
void | set_Category (System::String value) |
Category name used to route the log entry to a one or more sinks. More... | |
int32_t | get_EventId () const |
Event number or identifier. More... | |
void | set_EventId (int32_t value) |
Event number or identifier. More... | |
System::SharedPtr< LogLevel > | get_Severity () const |
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). More... | |
void | set_Severity (System::SharedPtr< LogLevel > value) |
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). More... | |
System::String | get_Title () const |
Additional description of the log entry message. More... | |
void | set_Title (System::String value) |
Additional description of the log entry message. More... | |
System::DateTime | get_TimeStamp () const |
Date and time of the log entry message. More... | |
void | set_TimeStamp (System::DateTime value) |
Date and time of the log entry message. More... | |
System::String | get_MachineName () const |
Name of the computer. More... | |
void | set_MachineName (System::String value) |
Name of the computer. More... | |
System::String | get_AppDomainName () const |
The AppDomain in which we are running More... | |
void | set_AppDomainName (System::String value) |
The AppDomain in which we are running More... | |
System::String | get_ThreadName () const |
The name of the .NET thread. More... | |
void | set_ThreadName (System::String value) |
The name of the .NET thread. More... | |
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String > > | get_ContextualProperties () const |
Dictionary of key/value pairs to record. More... | |
void | set_ContextualProperties (System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> value) |
Dictionary of key/value pairs to record. More... | |
System::String | get_ErrorMessages () |
Gets the error message with the LogEntry More... | |
int32_t | get_SequenceId () const |
The unique identifier of log event which is automatically generated and monotonously increasing. More... | |
System::Exception | get_InnerException () const |
Gets the inner exception object. More... | |
void | set_InnerException (System::Exception value) |
Sets the inner exception object. More... | |
LogEntry () | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message) | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message, System::DateTime time) | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message, System::Exception innerException) | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message, System::SharedPtr< LogLevel > severity) | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message, System::Exception innerException, System::SharedPtr< LogLevel > severity) | |
Initialize a new instance of a LogEntry class. More... | |
LogEntry (System::String message, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> properties) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::ArrayPtr< uint8_t > binaryDataMessage) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::ArrayPtr< uint8_t > binaryDataMessage, System::SharedPtr< System::Text::Encoding > messageEncoding) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::ArrayPtr< uint8_t > binaryDataMessage, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> properties) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::ArrayPtr< uint8_t > binaryDataMessage, System::SharedPtr< System::Text::Encoding > messageEncoding, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> properties) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::String message, System::SharedPtr< LogLevel > severity, System::String category, int32_t eventId, System::String title, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> properties) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
LogEntry (System::String message, System::Exception innerException, System::SharedPtr< LogLevel > severity, System::String category, int32_t eventId, System::String title, System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> properties) | |
Create a new instance of LogEntry with a full set of constructor parameters More... | |
System::SharedPtr< LogEntry > | Clone () |
Creates a new LogEntry that is a copy of the current instance. More... | |
virtual void | AddErrorMessage (System::String message) |
Add an error or warning message to the start of the messages string builder. Used by the distributor to record problems. More... | |
System::String | ToString () const override |
Public Attributes | |
System::SharedPtr< System::Collections::Generic::Dictionary< System::SharedPtr< Formatter >, System::String > > | FormatterResults |
Friends | |
class | Aspose::Email::Tools::Logging::ProtocolFormatter |
class | Aspose::Email::Tools::Logging::SimpleFormatter |
class | Aspose::Email::Tools::Logging::StandardFormatter |
Represents a log message. Contains the common properties that are required for all log messages.
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | ) |
Initialize a new instance of a LogEntry class.
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message | ) |
Initialize a new instance of a LogEntry class.
message | The message. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::DateTime | time | ||
) |
Initialize a new instance of a LogEntry class.
message | The message. |
time | The time. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::Exception | innerException | ||
) |
Initialize a new instance of a LogEntry class.
message | Message body to log. Value from ToString() method from message object. |
innerException | The inner exception to log. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::SharedPtr< LogLevel > | severity | ||
) |
Initialize a new instance of a LogEntry class.
message | Message body to log. Value from ToString() method from message object. |
severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::Exception | innerException, | ||
System::SharedPtr< LogLevel > | severity | ||
) |
Initialize a new instance of a LogEntry class.
message | Message body to log. Value from ToString() method from message object. |
innerException | The inner exception to log. |
severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | properties | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
message | Message body to log. Value from ToString() method from message object. |
properties | Dictionary of key/value pairs to record. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::ArrayPtr< uint8_t > | binaryDataMessage | ) |
Create a new instance of LogEntry with a full set of constructor parameters
binaryDataMessage | Binary message body to log. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::ArrayPtr< uint8_t > | binaryDataMessage, |
System::SharedPtr< System::Text::Encoding > | messageEncoding | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
binaryDataMessage | Binary message body to log. |
messageEncoding | Encoding for binary message |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::ArrayPtr< uint8_t > | binaryDataMessage, |
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | properties | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
binaryDataMessage | Binary message body to log. |
properties | Dictionary of key/value pairs to record. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::ArrayPtr< uint8_t > | binaryDataMessage, |
System::SharedPtr< System::Text::Encoding > | messageEncoding, | ||
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | properties | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
binaryDataMessage | Binary message body to log. |
messageEncoding | Encoding for binary message |
properties | Dictionary of key/value pairs to record. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::SharedPtr< LogLevel > | severity, | ||
System::String | category, | ||
int32_t | eventId, | ||
System::String | title, | ||
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | properties | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
message | Message body to log. Value from ToString() method from message object. |
severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
category | Category name used to route the log entry to a one or more sinks. |
eventId | Event number or identifier. |
title | Additional description of the log entry message. |
properties | Dictionary of key/value pairs to record. |
Aspose::Email::Tools::Logging::LogEntry::LogEntry | ( | System::String | message, |
System::Exception | innerException, | ||
System::SharedPtr< LogLevel > | severity, | ||
System::String | category, | ||
int32_t | eventId, | ||
System::String | title, | ||
System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | properties | ||
) |
Create a new instance of LogEntry with a full set of constructor parameters
message | Message body to log. Value from ToString() method from message object. |
innerException | The inner exception to log. |
severity | Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error). |
category | Category name used to route the log entry to a one or more sinks. |
eventId | Event number or identifier. |
title | Additional description of the log entry message. |
properties | Dictionary of key/value pairs to record. |
|
virtual |
Add an error or warning message to the start of the messages string builder. Used by the distributor to record problems.
message | Message to be added to this instance |
System::SharedPtr<LogEntry> Aspose::Email::Tools::Logging::LogEntry::Clone | ( | ) |
System::String Aspose::Email::Tools::Logging::LogEntry::get_AppDomainName | ( | ) | const |
The AppDomain in which we are running
System::ArrayPtr<uint8_t> Aspose::Email::Tools::Logging::LogEntry::get_BinaryDataMessage | ( | ) | const |
Binary message body to log.
System::String Aspose::Email::Tools::Logging::LogEntry::get_Category | ( | ) | const |
Category name used to route the log entry to a one or more sinks.
System::SharedPtr<System::Collections::Generic::IDictionary<System::String, System::String> > Aspose::Email::Tools::Logging::LogEntry::get_ContextualProperties | ( | ) | const |
Dictionary of key/value pairs to record.
System::String Aspose::Email::Tools::Logging::LogEntry::get_ErrorMessages | ( | ) |
Gets the error message with the LogEntry
int32_t Aspose::Email::Tools::Logging::LogEntry::get_EventId | ( | ) | const |
Event number or identifier.
System::Exception Aspose::Email::Tools::Logging::LogEntry::get_InnerException | ( | ) | const |
Gets the inner exception object.
System::String Aspose::Email::Tools::Logging::LogEntry::get_MachineName | ( | ) | const |
Name of the computer.
System::String Aspose::Email::Tools::Logging::LogEntry::get_Message | ( | ) |
Message body to log. Value from ToString() method from message object.
System::SharedPtr<System::Text::Encoding> Aspose::Email::Tools::Logging::LogEntry::get_MessageEncoding | ( | ) | const |
Encoding for binary message body
int32_t Aspose::Email::Tools::Logging::LogEntry::get_SequenceId | ( | ) | const |
The unique identifier of log event which is automatically generated and monotonously increasing.
System::SharedPtr<LogLevel> Aspose::Email::Tools::Logging::LogEntry::get_Severity | ( | ) | const |
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
System::String Aspose::Email::Tools::Logging::LogEntry::get_ThreadName | ( | ) | const |
The name of the .NET thread.
System::DateTime Aspose::Email::Tools::Logging::LogEntry::get_TimeStamp | ( | ) | const |
Date and time of the log entry message.
System::String Aspose::Email::Tools::Logging::LogEntry::get_Title | ( | ) | const |
Additional description of the log entry message.
void Aspose::Email::Tools::Logging::LogEntry::set_AppDomainName | ( | System::String | value | ) |
The AppDomain in which we are running
void Aspose::Email::Tools::Logging::LogEntry::set_BinaryDataMessage | ( | System::ArrayPtr< uint8_t > | value | ) |
Binary message body to log.
void Aspose::Email::Tools::Logging::LogEntry::set_Category | ( | System::String | value | ) |
Category name used to route the log entry to a one or more sinks.
void Aspose::Email::Tools::Logging::LogEntry::set_ContextualProperties | ( | System::SharedPtr< System::Collections::Generic::IDictionary< System::String, System::String >> | value | ) |
Dictionary of key/value pairs to record.
void Aspose::Email::Tools::Logging::LogEntry::set_EventId | ( | int32_t | value | ) |
Event number or identifier.
void Aspose::Email::Tools::Logging::LogEntry::set_InnerException | ( | System::Exception | value | ) |
Sets the inner exception object.
void Aspose::Email::Tools::Logging::LogEntry::set_MachineName | ( | System::String | value | ) |
Name of the computer.
void Aspose::Email::Tools::Logging::LogEntry::set_Message | ( | System::String | value | ) |
Message body to log. Value from ToString() method from message object.
void Aspose::Email::Tools::Logging::LogEntry::set_MessageEncoding | ( | System::SharedPtr< System::Text::Encoding > | value | ) |
Encoding for binary message body
void Aspose::Email::Tools::Logging::LogEntry::set_Severity | ( | System::SharedPtr< LogLevel > | value | ) |
Log entry severity as a Severity enumeration. (Unspecified, Information, Warning or Error).
void Aspose::Email::Tools::Logging::LogEntry::set_ThreadName | ( | System::String | value | ) |
The name of the .NET thread.
void Aspose::Email::Tools::Logging::LogEntry::set_TimeStamp | ( | System::DateTime | value | ) |
Date and time of the log entry message.
void Aspose::Email::Tools::Logging::LogEntry::set_Title | ( | System::String | value | ) |
Additional description of the log entry message.
|
override |
|
friend |
|
friend |
|
friend |
System::SharedPtr<System::Collections::Generic::Dictionary<System::SharedPtr<Formatter>, System::String> > Aspose::Email::Tools::Logging::LogEntry::FormatterResults |