Fórum

Liferay Application Log

Kevin Matthews, modificado 10 Anos atrás.

Liferay Application Log

Junior Member Postagens: 38 Data de Entrada: 23/05/12 Postagens Recentes
Hi,
I have created a custom log file (liferay.log)for logging my application custom portlet using liferay LogFactoryUtil.
It seems that the time is recorded in GMT and I would like it to be set in EST. Does anyone knows how to change the time setting in the liferay log file? I have made many changes in the JVM properties file, in the tomcat server console in the control panel, portal-ext.properties file and had no successful changes. Please advise.

Thanks,
Kevin
thumbnail
Krzysztof Gołębiowski, modificado 10 Anos atrás.

RE: Liferay Application Log

Liferay Master Postagens: 549 Data de Entrada: 25/06/11 Postagens Recentes
We have only timezone set in Tomcat's setenv.sh:

-Duser.timezone=Europe/Warsaw

Default was GMT, now is GMT+1.
Kevin Matthews, modificado 10 Anos atrás.

RE: Liferay Application Log

Junior Member Postagens: 38 Data de Entrada: 23/05/12 Postagens Recentes
It worked in our test environment Thank you...! I had tried so many different areas and it did not worked. I will make the same changes on our productions server..and see if it works as well.
thumbnail
David H Nebinger, modificado 10 Anos atrás.

RE: Liferay Application Log

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
This is only a good idea if your users are all in a single timezone.

If your users cross timezones, your Liferay instance is not in GMT and dates/times may not be handled correctly. Sure your log files will look nice, but that can be an expensive price to pay just to get the timestamps in the logs looking right...