-
Notifications
You must be signed in to change notification settings - Fork 0
59b057da 9be1 d536 5736 0423542581bd
Axel Kesseler edited this page Mar 1, 2023
·
18 revisions
This internal class provides functionality to transform logging massages into raw format.
System.Object
Plexdata.LogWriter.Internals.Formatters.FormatterBase
Plexdata.LogWriter.Internals.Formatters.RawFormatter
Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
internal class RawFormatter : FormatterBase,
ILogEventFormatter
The RawFormatter type exposes the following members.
Name | Description | |
---|---|---|
RawFormatter | The parameterized constructor just initializes all properties. |
Name | Description | |
---|---|---|
EmptyValue | Gets the string of an “empty” value. (Inherited from FormatterBase.) | |
NullValue | Gets the string of a “null” value. (Inherited from FormatterBase.) | |
Settings | Gets the instance of logger settings. (Inherited from FormatterBase.) |
Name | Description | |
---|---|---|
AddContext | The method puts the context into the string builder and appends the split character. | |
AddDetails | The method puts the details into the string builder and appends the split character. | |
AddException | The method puts the exception into the string builder but does not append the split character. | |
AddKey | The method puts the key into the string builder and adds the split character. | |
AddLevel | The method puts the level into the string builder and appends the split character. | |
AddMessage | The method puts the message into the string builder and appends the split character. | |
AddScope | The method puts the scope into the string builder and appends the split character. | |
AddTime | The method puts the time into the string builder and appends the split character. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Format | This method formats provided logging event and writes the result back into provided string builder. | |
GetAdjustedTime | This method adjusts provided timestamp according to current timestamp settings. (Inherited from FormatterBase.) | |
GetContext(String) | This method converts provided parameter context into its string representation. (Inherited from FormatterBase.) | |
GetContext(String, String) | This method converts provided parameter context into its string representation. (Inherited from FormatterBase.) | |
GetConverted(Object) | This method converts provided parameter value into its string representation. (Inherited from FormatterBase.) | |
GetConverted(Object, String) | This method converts provided parameter value into its string representation. (Inherited from FormatterBase.) | |
GetException(Exception) | This method converts provided parameter exception into its string representation. (Inherited from FormatterBase.) | |
GetException(Exception, String) | This method converts provided parameter exception into its string representation. (Inherited from FormatterBase.) | |
GetFormattedTime | This method formats provided timestamp as string. (Inherited from FormatterBase.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetKey | This method converts parameter key into its string representation. (Inherited from FormatterBase.) | |
GetLevel | This method converts parameter level into its string representation. (Inherited from FormatterBase.) | |
GetMessage(String) | This method converts provided parameter message into its string representation. (Inherited from FormatterBase.) | |
GetMessage(String, String) | This method converts provided parameter message into its string representation. (Inherited from FormatterBase.) | |
GetScope(String) | This method converts provided parameter scope into its string representation. (Inherited from FormatterBase.) | |
GetScope(String, String) | This method converts provided parameter scope into its string representation. (Inherited from FormatterBase.) | |
GetTime | This method converts parameter time into its string representation. (Inherited from FormatterBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToLabel | This method converts a label into its output representation. (Overrides FormatterBase.ToLabel(String).) | |
ToOutput(String, Char) | This method converts a value into its output format. (Overrides FormatterBase.ToOutput(String, Char).) | |
ToOutput(String, String, Char) | This method converts a combination of label and value into its output format. (Overrides FormatterBase.ToOutput(String, String, Char).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToValue | This method converts a value into its output representation. (Overrides FormatterBase.ToValue(String, Char).) | |
TrimEnd | This method removes the last occurrences of character value from provided string builder. (Inherited from FormatterBase.) |
Raw format typically means that such a logging message consists of a leading time stamp and is followed by a particular logging level as well as a meaningful message. Additionally, such a raw logging message may include a message context and/or a message scope. Other additional information might be included as well.