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

Message field doesn't expand "%s" style format strings #11

Open
johnedo1234 opened this issue May 21, 2015 · 2 comments
Open

Message field doesn't expand "%s" style format strings #11

johnedo1234 opened this issue May 21, 2015 · 2 comments

Comments

@johnedo1234
Copy link

We're seeing log messages coming from JBoss with unexpanded "%s" format strings. Since those messages aren't coming from our code, we can't change them to use the format strings expected by the logstash-util-formatter.

@johnedo1234
Copy link
Author

Think the formatter should also support "%s"-style format strings and expand them properly.

@johnedo1234
Copy link
Author

Fixed and submitted pull request: #12

If regular formatting produces no change to the message and there are actually parameters, falls back to String.format(). If that fails, just returns the original message.

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