Fórum

Where are the log levels settings of Log Level Portlet?

thumbnail
Alessandra Ferrari, modificado 16 Anos atrás.

Where are the log levels settings of Log Level Portlet?

New Member Postagens: 13 Data de Entrada: 17/07/07 Postagens Recentes
Hi.
I'm using liferay 4.2.2 regenerating ear by code under JBoss 4.2.1
I wasn't able to tune the log levels by log4j.xml (or portal-log4j.xm or portal-ext-log4j.xml) because JBoss "overrides" the log settings with its, manipulating jboss-web.xml too.

Well,
I've developed a listener that loads my log4j.xml.
This works, in fact, if I change the ConversionPattern of my appenders, I read the new log string patterns as into console as into file.
BUT, this is not the same for the categories...emoticon

In fact, even if I change root and log.liferay from DEBUG to INFO, I see all the debug println.
And, managing as administrator the log levels, I, effectively, read "DEBUG". If I change there the level, this works correctly.
The question now is: from what the log levels administrator portlet loads categories and their log levels?

Thanks in advance
thumbnail
Alessandra Ferrari, modificado 16 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

New Member Postagens: 13 Data de Entrada: 17/07/07 Postagens Recentes
Nobody knows the answers? emoticon
thumbnail
Alex Wallace, modificado 16 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

Liferay Master Postagens: 640 Data de Entrada: 05/11/07 Postagens Recentes
take a look at http://wiki.liferay.com/index.php/How_to_configure_the_logs_in_Liferay
thumbnail
Alessandra Ferrari, modificado 16 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

New Member Postagens: 13 Data de Entrada: 17/07/07 Postagens Recentes
Alex Wallace:
take a look at http://wiki.liferay.com/index.php/How_to_configure_the_logs_in_Liferay


Thanks a lot!
Effectively the wiki solves my question.
Reading the code of InitAction class, I see that only the categories are loaded from portal-log4j.xml and portal-log4j-ext.xml.
The appenders not.

So, I'll use my listener to load "my" appenders and the two files above for the categories...
Guru Anand, modificado 15 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

Junior Member Postagens: 26 Data de Entrada: 22/04/08 Postagens Recentes
Hi,

How to customize the Logs for my application, what are the settings need to be made. ?

In which path Log files will be generated ?
Robert Zahm, modificado 15 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

Junior Member Postagens: 46 Data de Entrada: 08/10/07 Postagens Recentes
Guru,

Did you read that wiki entry? Your logs should be in the logs directory of the Tomcat root.

Thanks,

Rob
Medha Sutaria, modificado 13 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

Junior Member Postagens: 31 Data de Entrada: 11/08/08 Postagens Recentes
Here's the new URL for this article -
http://www.liferay.com/community/wiki/-/wiki/Main/How+to+configure+the+logs+in+Liferay
thumbnail
Michael Poznecki, modificado 13 Anos atrás.

RE: Where are the log levels settings of Log Level Portlet?

Expert Postagens: 301 Data de Entrada: 10/12/08 Postagens Recentes
I had the same question.