-
Notifications
You must be signed in to change notification settings - Fork 0
cfcc895b dca0 a027 5ad8 5c820254bceb
This internal class represents the base class of all other formatter implementations.
System.Object
Plexdata.LogWriter.Internals.Formatters.FormatterBase
Plexdata.LogWriter.Internals.Formatters.CsvFormatter
Plexdata.LogWriter.Internals.Formatters.GelfFormatter
Plexdata.LogWriter.Internals.Formatters.JsonFormatter
Plexdata.LogWriter.Internals.Formatters.RawFormatter
Plexdata.LogWriter.Internals.Formatters.XmlFormatter
Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
internal abstract class FormatterBase
The FormatterBase type exposes the following members.
Name | Description | |
---|---|---|
FormatterBase | The parameterized constructor just initializes all properties. |
Name | Description | |
---|---|---|
EmptyValue | Gets the string of an “empty” value. | |
NullValue | Gets the string of a “null” value. | |
Settings | Gets the instance of logger settings. |
Name | Description | |
---|---|---|
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.) | |
GetAdjustedTime | This method adjusts provided timestamp according to current timestamp settings. | |
GetContext(String) | This method converts provided parameter context into its string representation. | |
GetContext(String, String) | This method converts provided parameter context into its string representation. | |
GetConverted(Object) | This method converts provided parameter value into its string representation. | |
GetConverted(Object, String) | This method converts provided parameter value into its string representation. | |
GetException(Exception) | This method converts provided parameter exception into its string representation. | |
GetException(Exception, String) | This method converts provided parameter exception into its string representation. | |
GetFormattedTime | This method formats provided timestamp as string. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetKey | This method converts parameter key into its string representation. | |
GetLevel | This method converts parameter level into its string representation. | |
GetMessage(String) | This method converts provided parameter message into its string representation. | |
GetMessage(String, String) | This method converts provided parameter message into its string representation. | |
GetScope(String) | This method converts provided parameter scope into its string representation. | |
GetScope(String, String) | This method converts provided parameter scope into its string representation. | |
GetTime | This method converts parameter time into its string representation. | |
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. | |
ToOutput(String, Char) | This method converts a value into its output format. | |
ToOutput(String, String, Char) | This method converts a combination of label and value into its output format. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToValue | This method converts a value into its output representation. | |
TrimEnd | This method removes the last occurrences of character value from provided string builder. |
This base class provides functionality that will be shared by all other formatter classes. Intentionally, this class is defined as abstract to prevent a direct usage.