-
Notifications
You must be signed in to change notification settings - Fork 0
ebb6a01c 82e7 6cf9 63e6 ea3189a22aa5
Axel Kesseler edited this page Mar 1, 2023
·
1 revision
The parameterized constructor just initializes all properties.
Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
public GelfFormatter(
ILoggerSettings settings,
IResolverFacade resolver
)
- settings
- Type: Plexdata.LogWriter.Abstraction.ILoggerSettings
The settings to be used for data formatting. - resolver
- Type: Plexdata.LogWriter.Internals.Facades.IResolverFacade
The resolver instance to determine local host name.
Exception | Condition |
---|---|
NotSupportedException | This exception is thrown if the logging type within provided settings is not set to Gelf. |
Formatting data depends on some logger settings. Therefore, consumers of this class must provide an instance of ILoggerSettings.
GelfFormatter Class
Plexdata.LogWriter.Internals.Formatters Namespace
FormatterBase.FormatterBase(ILoggerSettings)