[This is preliminary documentation and is subject to change.]
The Message type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Message | Initializes a new instance of the Message class |
![]() | Message(Object, String, Int32) |
Creates message with Parameters supplanted with caller file name and line #
|
Methods
Name | Description | |
---|---|---|
![]() | Clone | |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() ![]() | FormatCallerParams |
Supplants the from string with caller as JSON string
|
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | SetParamsAsObject | |
![]() | ToString | (Overrides ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | DefaultHostName |
Properties
Name | Description | |
---|---|---|
![]() | Exception |
Gets/Sets exception associated with message.
Set this property EVEN IF the name/text of exception is already included in Text as log destinations may elect to dump the whole stack trace
|
![]() | From |
Gets/Sets logical component ID, such as: class name, method name, process instance, that generated the message.
This field is used in the scope of Topic
|
![]() | Guid |
Returns global unique identifier for this particular message
|
![]() | Host |
Gets/Sets host name that generated the message
|
![]() | Parameters |
Gets/Sets a structured parameter bag, this may be used for additional debug info like source file name, additional context etc.
|
![]() | RelatedTo |
Gets/Sets global unique identifier of a message that this message is related to.
No referential integrity check is performed
|
![]() | Source |
Gets/Sets message source line number/tracepoint#, this is used in conjunction with From
|
![]() | Text |
Gets/Sets an unstructured message text, the emitting component name must be in From field, not in text.
Note about logging errors. Use caught exception.ToMessageWithType() method, then attach the caught exception as Exception property
|
![]() | TimeStamp |
Gets/Sets timestamp when message was generated
|
![]() | Topic |
Gets/Sets a message topic/relation - the name of software concern within the big app, i.e. "Database" or "Security"
|
![]() | Type |
Gets/Sets message type, such as: Info/Warning/Error etc...
|
See Also