jain-sip icon indicating copy to clipboard operation
jain-sip copied to clipboard

Update log4j lib version

Open jaimecasero opened this issue 8 years ago • 8 comments

check compilation and testSuite issues

jaimecasero avatar Jun 09 '16 07:06 jaimecasero

Do you need help with this one?

valliman avatar Oct 15 '16 06:10 valliman

@valliman we are planning to fully mavenize the project, and update thirdparty Libs. On this context, updating log4j to something more new would be certainly desirable. Right now we are using log4j-1.2.15.jar, and we are looking into using any log4j2 build.

This effort would include to check any compilation issues due to API deprecation problems, and retesting the whole TCK and testsuite.

If you are free to help, you are more than welcome. wdyt?

jaimecasero avatar Oct 18 '16 09:10 jaimecasero

@jaimecasero

I would suggest to update to log4j2 as well. How would you like to procede with the logging facade. Is it fine to remove it and to reference directly to the log4j api or do you want to reference to a logging facade like slf4j? Or is such a change not desired at all and the existing logging facade has to be kept?

valliman avatar Oct 19 '16 17:10 valliman

@valliman As you can see, JAIN SIP defines its own facade at https://github.com/RestComm/jain-sip/blob/master/src/gov/nist/core/StackLogger.java . This is not particurlarly good, but changing the facade as it is now would imply too many changes. I would prefer to enrich this facade with some convenient new methods to tkae advantage of possible impl features ( like parameterized logging)

Basically my idea was to upgrade the lib, check any issues on facade impl for log4j at https://github.com/RestComm/jain-sip/blob/master/src/gov/nist/core/CommonLoggerLog4j.java , and then retest the whole testSuite to check if there is some problem

wdyt? does it sound like plan?

jaimecasero avatar Oct 20 '16 10:10 jaimecasero

Also worth mentioning the preferrable usage of AsyncAppender from version 2.6 http://logging.apache.org/log4j/2.x/manual/async.html#Performance

jaimecasero avatar Oct 24 '16 09:10 jaimecasero

Did you already made up some thoughts how to continue here. Is Java 1.5 compability still a "must have"?

valliman avatar Mar 17 '17 14:03 valliman

well from log4j2 web site i can see 1.7 is required from version 2.3. We need to support some old versions of jboss5 which may not support 1.7. So we were thinking about looking into 1.6 as new jain sip req, and allowing log4j2 at the same time. At the expense of downgrading log4j from 2.8 to <2.3

wdty? could you try that and see all works with <2.3

jaimecasero avatar Mar 17 '17 14:03 jaimecasero

image_1647418211674.png

log4j version is too old...

YiuTerran avatar Mar 16 '22 08:03 YiuTerran