Re: Question about the log variable in Filters

2022-08-31 Thread tianshuang
Well, actually the Filter class will only be loaded once by the common classloader, to ensure that the latest log configuration in the webapp is used, we have to remove the static modifier to ensure that the log instance is recreated with the new configuration (if the configuration changes).

Re: Question about the log variable in Filters

2022-08-31 Thread Konstantin Kolinko
ср, 31 авг. 2022 г. в 13:25, tianshuang : > > Hi, > > In this commit > , > the static modifier was removed from the log variable in the Filters class, > but I don't understand why it needs to be removed. As far as

Question about the log variable in Filters

2022-08-31 Thread tianshuang
Hi, In this commit , the static modifier was removed from the log variable in the Filters class, but I don't understand why it needs to be removed. As far as I know, when a class is loaded by different