Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Duo Zhang
Thanks Ralph, what you proposed is fine by me. I'm not very familiar with the implementations inside log4j2 so in the above example I just want to make clear that enhancing property parsing could also be a direction for solve the problem. Ralph Goers 于2022年1月10日周一 12:53写道: > OK, I had a suspici

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Dan Kegel
Ralph Goers schrieb am So., 9. Jan. 2022, 20:53: > StrSubstitutor is already complicated Having just reviewed that function and its looping caller, I would have to agree

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Ralph Goers
OK, I had a suspicion the reason for needing this was something like that. The syntax you propose below would require modifying PropertiesUtil, the Property plugin and StrSubstitutor to support arrays. I don’t think I’d want to go down that path. StrSubstitutor is already complicated and the id

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Duo Zhang
Thank you for the reply. And yes, it is not only for the root logger, we have tons of different loggers in hadoop, as hadoop is constructed with several different projects actually, and they are developed by different groups of people... And on splitting the config in shell, actually this is exac

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Ralph Goers
We already support this with two variables. But if they only want to pass one then we have two options: 1. Modify PropertiesConfiguration to support a new element that allows a Level and AppenderRef which then gets split internally. 2. Create a Lookup that extracts the relevant portion of the dat

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Gary Gregory
I think it is reasonable to say we can support this through 2 instead of 1 variable. Duo? Gary On Sun, Jan 9, 2022, 16:24 Ralph Goers wrote: > I’m looking at this and have a couple of concerns. The script has > > > HADOOP_ROOT_LOGGER=${HADOOP_ROOT_LOGGER:-${HADOOP_LOGLEVEL},console} > > HADO

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Gary Gregory
I agree, let's make it easier for Hadoop :-) Gary On Sun, Jan 9, 2022, 15:54 Matt Sicker wrote: > This sounds fairly reasonable, though I haven’t looked at implementation > details. We should make a Jira ticket to track the change. Otherwise, I > think it’s a good idea to support the syntax. >

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Ralph Goers
I’m looking at this and have a couple of concerns. The script has HADOOP_ROOT_LOGGER=${HADOOP_ROOT_LOGGER:-${HADOOP_LOGLEVEL},console} HADOOP_DAEMON_ROOT_LOGGER=${HADOOP_DAEMON_ROOT_LOGGER:-${HADOOP_LOGLEVEL},RFA} HADOOP_SECURITY_LOGGER=${HADOOP_SECURITY_LOGGER:-INFO,NullAppender} So it s

Re: [DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Matt Sicker
This sounds fairly reasonable, though I haven’t looked at implementation details. We should make a Jira ticket to track the change. Otherwise, I think it’s a good idea to support the syntax. — Matt Sicker > On Jan 9, 2022, at 09:02, 张铎 wrote: > > I brought this up in the incubator mailing li

Re: [RESULT][VOTE] CVE creation process

2022-01-09 Thread Volkan Yazıcı
Here it is: https://github.com/apache/logging-log4j2/pull/690 Mind somebody reviewing and merging it, please? On Fri, Jan 7, 2022 at 1:35 PM Gary Gregory wrote: > Hi all, > > Where can we record this decision? In a text file in the repo? Wiki? Both? > > Gary > > On Fri, Jan 7, 2022, 05:22 Volka

[DISCUSS] Support 'log4j.rootLogger=INFO,Console' configuration grammar in log4j2

2022-01-09 Thread Duo Zhang
I brought this up in the incubator mailing list, and was suggested to report directly to the log4j community. https://issues.apache.org/jira/browse/HADOOP-16206 In hadoop we started to try migrating to log4j2 long ago, but it is not easy. For now, one of the most blocker issues is the lack of sup