Skip to content
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

New Detector for arrays, list #51

Open
afrin216 opened this issue May 26, 2017 · 0 comments
Open

New Detector for arrays, list #51

afrin216 opened this issue May 26, 2017 · 0 comments

Comments

@afrin216
Copy link

Since slf4j automatically adds square brackets to collections, arrays etc passed into the message within square brackets would result in two sets of square brackets.

Example:

final List<String> serviceClasses = Arrays.asList("a","b");
LOGGER.info("Found services [{}]", serviceClasses);

would result in final formatted having two sets of square brackets like Found services [["a","b"]]. It would be nice if we could detect this pattern of [{}] for collection and warn the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant