Foros de discusión

Liferay 6.1 with log4j2

avasek atok, modificado hace 8 años.

Liferay 6.1 with log4j2

Junior Member Mensajes: 41 Fecha de incorporación: 9/01/15 Mensajes recientes
Hi, Currently I am using liferay 6.1 and it's using log4j 1. However I want to migrate to log4j2 now.
Hence want to understand
1) if there is a way to upgrade to log4j2.
2) Also if there is a way to dynamically get the logLevel using liferay API and change it. Currently i am using control panel to change the log levels manually.

Any suggestions, please help.
avasek atok, modificado hace 8 años.

RE: Liferay 6.1 with log4j2

Junior Member Mensajes: 41 Fecha de incorporación: 9/01/15 Mensajes recientes
Any one can suggest if there is a way we can achieve my first question.
My second question I resolved on my own. I found the solution and it's working emoticon

Thanks,
avasek atok, modificado hace 8 años.

RE: Liferay 6.1 with log4j2

Junior Member Mensajes: 41 Fecha de incorporación: 9/01/15 Mensajes recientes
Hello All,

Can some body share your experiences/thoughts on this.

Thanks
thumbnail
Olaf Kock, modificado hace 8 años.

RE: Liferay 6.1 with log4j2

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
You're typically free to use whatever you like in your own plugins. As of Liferay's core: It's fully tested with the version that it comes with. Exchanging it will mean that nobody but you has ever used it in this combination.

Is there a way? Yes, sure - drop in the new library, remove the old, check if it still compiles and make changes as necessary. Test *everything* and don't complain to anybody if you missed something. Do this again when the next security patch or GA version comes out. Always remember: You're the only one who's running this combination.

If you want to lobby for this to be done in the next version (e.g. current master), you should lobby for this on the Ideation pages and get support for a feature request.

In addition and somewhat related: If you actually wish to upgrade (and if you're on 6.1 CE), I'd suggest upgrading to Liferay 6.2, as you can get security fixes and updates for this version (until 7.0 is out). 6.1 CE didn't receive any attention in a long time now and you should rather invest in the future than the past.