Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Pooja Pandey
Hi team, I think there is something wrong with Log4j1.x bridge level handling when migrating from log4j1.x to log4j2.x. Issue: In my config file, log level is set to "Error", but with log4j1.x bridge log level is getting calculated as DEBUG. I think this is since in log4j1.x from FATAL to

Re: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Piotr P. Karwasz
Hello Pooja, On Mon, Mar 7, 2022 at 11:23 AM Pooja Pandey wrote: > I think there is something wrong with Log4j1.x bridge level handling when > migrating from log4j1.x to log4j2.x. > > Issue: In my config file, log level is set to "Error", but with log4j1.x > bridge log level is getting

RE: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Pooja Pandey
From the questions you posted up to now, you use a lot of custom code extending Log4j 1.x capabilities. In my personal opinion you'll spend more time trying to adapt your code to use the Log4j 1.x bridge, than it would require to migrate to Log4j 2.x. Almost everything is working in my

Re: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Piotr P. Karwasz
Hello Pooja, On Mon, Mar 7, 2022 at 1:40 PM Pooja Pandey wrote: > > -> If I recall correctly, you are using a custom `Logger` class. My guess is > that you overrode the `getEffectiveLevel()` with some custom logic. > > Yes Piotr, you are correct. I am overriding this method in my custom logger

RE: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Pooja Pandey
-> If I recall correctly, you are using a custom `Logger` class. My guess is that you overrode the `getEffectiveLevel()` with some custom logic. Yes Piotr, you are correct. I am overriding this method in my custom logger as below. Do you think this could be the problem?? @Override

Re: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Piotr P. Karwasz
Hello, On Mon, Mar 7, 2022 at 3:15 PM Pooja Pandey wrote: > > From the questions you posted up to now, you use a lot of custom code > extending Log4j 1.x capabilities. In my personal opinion you'll spend more > time trying to adapt your code to use the Log4j 1.x bridge, than it would >

Re: Log level settings are not working correctly and getting wrong value

2022-03-07 Thread Pooja Pandey
Thank you so much Piotr  Get Outlook for iOS From: Piotr P. Karwasz Sent: Monday, March 7, 2022 11:58:14 PM To: Log4J Users List Subject: Re: Log level settings are not working correctly and getting wrong value *** External email:

Log4j1.x bridge error: Unable to create Lookup for bundle java.lang.ClassCastException: class org.apache.logging.log4j.core.lookup.ResourceBundleLookup

2022-03-07 Thread Pooja Pandey
Hi, I am trying to migrate from log4j1.x to log4j2.17.2 using log4j1.x bridge approach. I am getting below ClassCastException error message. Please let me know if you have any idea how to fix this. 2022-03-08 01:41:17,023 http-nio-8088-exec-9 ERROR Unable to create Lookup for bundle