-
Notifications
You must be signed in to change notification settings - Fork 70
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
[log4j] migrate to log4j2 (#258) #305
Conversation
Log via slf4j instead of directly to log4j
* [log4j] migrate to log4j2 * [travis] fix log4j config file directive * [log4j2] support STDERR and STDOUT as ways to refer to log location too
776565c
to
6c24d91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing that !
Except the one question about stdout
, it looks good.
} catch (IOException e) { | ||
// Same as above | ||
LOGGER.warn("Unable to replace $value for attribute " + fullAttributeName, e); | ||
if (alias.contains("$value")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
&& (ConsoleAppender.Target.SYSTEM_ERR.toString().equals(logLocation) | ||
|| SYSTEM_ERR_ALT.equals(logLocation))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we allow SYSTEM_OUT
/ SYSTEM_OUT_ALT
along with SYSTEM_ERR
/ SYSTEM_ERR_ALT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe.... but this is actually the same on master
, most of these changes came in from cherry-pick'd logic. I had to fix a few things, but this is really the same everywhere. I don't oppose doing some follow-up and maybe verifying/fixing a couple of things in the logger logic, but this should be 👍 and consistent with our logging on JMXFetch on most recent versions.
Thanks for the review @prognant 🙇
[log4j] migrate to log4j2
[travis] fix log4j config file directive
[log4j2] support STDERR and STDOUT as ways to refer to log location too