logstash-logback-encoder
logstash-logback-encoder copied to clipboard
`getFieldValue()` is not accessible
Hello, since 7.1 we are having issues in our test code that deals with getFieldValue() (tracked in https://github.com/GoogleCloudPlatform/spring-cloud-gcp/issues/1764). This method was declared protected in https://github.com/logfellow/logstash-logback-encoder/pull/720 , apparently only intended to change the return type of this method. Is it possible to change it back to public?
Thank you!
Hi @diegomarquezp
The marker classes are not currently designed to be consumed outside of logstash-logback-encoder. Backwards compatibility is not guarenteed for them. They are public only because the library needs to access them from a different package (net.logstash.logback.argument) for structured arguments.
Can you provide some more details about why you need to access them?
At least we are using them in unittests too, to see if some MDC fields have been logged.