Re: Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold

2022-01-11 Thread Sam Mesh
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:

Re: Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold

2022-01-11 Thread Gary Gregory
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

Log4j1ConfigurationParser and log4j.appender.ConsoleLogger.Threshold

2022-01-11 Thread Sam.Mesh
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

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

2022-01-11 Thread Gary Gregory
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写道: > > >

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

2022-01-11 Thread Duo Zhang
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

[LOG4J2-3319] Fragment vs bundle for log4j-1.2-api

2022-01-11 Thread Gary Gregory
WRT https://issues.apache.org/jira/browse/LOG4J2-3319 Please see my question in the ticket above. TY, Gary

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

2022-01-11 Thread Volkan Yazıcı
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