I use just Log4j1ConfigurationParser.java from 2.17.1 bridge, don't use
other files.
Source log4j1 properties:
log4j.rootLogger=DEBUG,ConsoleLogger,FileLogger,GenesysAppender
log4j.appender.ConsoleLogger.Threshold=INFO
Generated by Log4j1ConfigurationParser log4j2 xml:
Hello Sam,
Do you have an example configuration that works in log4j 1 but not with the
log4j 2 bridge for 1.2?
You should also make sure you test with 2.17.1 and try 2.17.2-snapshot
which contains important fixes to the bridge.
Gary
On Tue, Jan 11, 2022, 16:29 Sam.Mesh wrote:
> Hello,
>
> It
Hello,
It looks like Log4j1ConfigurationParser doesn't consider
log4j.appender.ConsoleLogger.Threshold to provide logging level for the
console.
Probably, this could be achieved like described at
https://logging.apache.org/log4j/log4j-2.0/faq.html#config_sep_appender_level
?
Thanks,
Sam
On Tue, Jan 11, 2022 at 8:20 AM 张铎(Duo Zhang) wrote:
> So we could open an issue for this feature then? As we have already started
> to discuss the implementation :)
>
Yes, that sounds like a good idea. Feel free to go ahead :-)
Gary
>
> Thanks~
>
> Volkan Yazıcı 于2022年1月11日周二 19:42写道:
>
> >
So we could open an issue for this feature then? As we have already started
to discuss the implementation :)
Thanks~
Volkan Yazıcı 于2022年1月11日周二 19:42写道:
> Giving it a one more try:
>
>
>${sys:hadoop.root.logger}
>
>hadoop.root.logger.level
>hadoop.root.logger.appender
WRT https://issues.apache.org/jira/browse/LOG4J2-3319
Please see my question in the ticket above.
TY,
Gary
Giving it a one more try:
${sys:hadoop.root.logger}
hadoop.root.logger.level
hadoop.root.logger.appender
On Mon, Jan 10, 2022 at 3:54 PM Ralph Goers
wrote:
> Yeah, that syntax is better although it doesn’t solve the multiple
> appender refs case either.
>
> LoggerConf