We’re testing 184.108.40.206 at the moment and have noticed that the use of the Log4j2 ConsoleAppender (which we use to write application logs on the Java and CFML side) has stopped working.
If we revert back to 220.127.116.11 then the console logs work just fine.
After the upgrade, only the ConsoleAppender has stopped working - our RollingFileAppender is still working correctly.
We develop using IntelliJ (due to our heavy reliance on Java integration) so we’re not keen to lose our console logs. Is there a change that could have caused this issue? We don’t get many chances to upgrade our stack so I’m hopeful we won’t have to revert!
@valley I’m pretty sure this is a “feature”. There is a new out log in your lucee server context that has all the console logs. Lucee wraps the sytem.out print stream to redirect. I am not a fan of this feature, in fact I argued with Micha about it. You can switch it back by manually editing the <system> portion of your Lucee-server.xml config file where you redirect where the system.out writes to.
I think commandbox was having problems with console output
@Zackster To be clear, CommandBox wasn’t having any problems, Lucee was Redirecting the entire system out was Micha’s fix, but I never thought it was a good fix. It was heavy-handed.
Thanks guys, editing the server.xml did the trick.
We actually blow away the default lucee-server.xml as part of our application installer build so the system portion still looked like this after the Lucee upgrade… <system err="default" out="null"/>
Makes sense that a null value would stop it from working, I presume at some point there was a change to Lucee to have it actually respect the setting, so I can’t be angry
@valley Correct, that setting had been in the XML file for a very long time, but Lucee ignored it! Lucee “fixed” itself a while and suddenly began obeying that setting. When I argued with Micha about it, he agreed to change the default value of the setting in the XML file you get for a new installation of Lucee, but of course, this does not help anyone such as yourself who has an older XML file they are using still. I hit the exact same issue as you where suddenly the setting started working and I was like “Where did my out logs go???”