-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogstashBasicMarker implementation is inefficient and out-off-sync with implementation provided by Slf4J #613
Comments
Instead of copying an alternative is to declare @philsttr What do you think of this? Would it cause issues in OSGI environments? |
It was originally in |
I see. So better to leave it like this and keep an "internal" copy. This class is public and behaves the same as the SLF4J version. Users may be tempted to use it as base class for their own specialisations... Is it something we want to support? Or should we protect it? Finally, we "copied" the class... but don't you think we should copy the relevant tests as well ? |
No
Yes, probably worth reducing the visibility.
definitely |
@philsttr Or even better - collapse the two implementations into one and keep only the |
I kept them separate to easily see the differences between our copied version and the original... primarily so it would make it easier to sync. However, if the logstash-logback-encoder implementation is going to start diverging more, then I don't see a reason to keep them separate. |
LogstashBasicMarker
is a now obsolete copy of org.slf4j.helpers.BasicMarker at version 1.7.12The original implementation has been updated and improved since then. The version included in logback-logstash-encoder should be updated accordingly.
A few points:
Note: Slf4J BasicMarker has a package protected constructor and cannot be easily re-used in other project - reason why the project maintains its own copy.
The text was updated successfully, but these errors were encountered: