Conversation
…oggingEvent Issue #658
|
@philsttr Looks like the field Similarly, |
The *FieldNames is only needed/used for the providers that are in LogstashAccessEncoder and LogstashEncoder by default. *FieldNames is needed because the default providers of those encoders are not configured individually (like is done for the *CompositeJsonEncoder). Since ThreadNameJsonProvider is not in LogstashAccessEncoder by default, it doesn't need to be in *FieldNames. For comparison, when the *CompositeJsonEncoders are used directly, *FieldNames is not used. Instead, the field name used by each provider is configured directly on each provider, as opposed to being configured on the encoder level.
Yes, they can be refactored to handle IAccessEvent or ILoggingEvent, but they still wouldn't need to to be in *FieldNames, since they would not be in LogstashAccessEncoder or LogstashEncoder by default. |
|
Ok - got it for Field Names. @philsttr Should we open separate issues to refactor |
|
Yes, please open an issue for them. I agree we should make them consistent. Thanks :) |
Closes #658