scheduling icon indicating copy to clipboard operation
scheduling copied to clipboard

Replace Log4j by SLF4J

Open lpellegr opened this issue 9 years ago • 3 comments

SLF4J is an abstraction that allows to plug the desired logging framework at deployment time.

I suggest to replace Log4j by SLF4J so that the desired backend implementation can easily be changed. Especially, it would be interesting to use Logback as the logging framework. The reasons to choose Logback over Log4j are explained in the link provided below:

http://logback.qos.ch/reasonsToSwitch.html

lpellegr avatar Jul 27 '15 13:07 lpellegr

Logback has built-in support for log rotation with compression:

http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy

lpellegr avatar Jul 27 '15 13:07 lpellegr

:+1:

Log4j seems to be frozen and not evolving any more.

But won't this change be a bit painful ?

fviale avatar Jul 27 '15 14:07 fviale

I haven't checked yet the work that is required for this task but if it is done for scheduling only I think it should not be too complex. If I remember, only ProActive Programming is using custom appender implementations for collecting distributed logs.

lpellegr avatar Jul 27 '15 14:07 lpellegr