Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Alessandra Ferrari
Where are the log levels settings of Log Level Portlet?
19 de Fevereiro de 2008 06:05
Resposta

Alessandra Ferrari

Ranking: New Member

Mensagens: 13

Data de entrada: 17 de Julho de 2007

Mensagens 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
Alessandra Ferrari
RE: Where are the log levels settings of Log Level Portlet?
19 de Fevereiro de 2008 06:06
Resposta

Alessandra Ferrari

Ranking: New Member

Mensagens: 13

Data de entrada: 17 de Julho de 2007

Mensagens recentes

Nobody knows the answers? emoticon
Alex Wallace
RE: Where are the log levels settings of Log Level Portlet?
19 de Fevereiro de 2008 08:51
Resposta

Alex Wallace

Ranking: Liferay Master

Mensagens: 640

Data de entrada: 4 de Novembro de 2007

Mensagens recentes

take a look at http://wiki.liferay.com/index.php/How_to_configure_the_logs_in_Liferay
Alessandra Ferrari
RE: Where are the log levels settings of Log Level Portlet?
20 de Fevereiro de 2008 08:38
Resposta

Alessandra Ferrari

Ranking: New Member

Mensagens: 13

Data de entrada: 17 de Julho de 2007

Mensagens 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
RE: Where are the log levels settings of Log Level Portlet?
22 de Maio de 2008 03:33
Resposta

Guru Anand

Ranking: Junior Member

Mensagens: 26

Data de entrada: 21 de Abril de 2008

Mensagens 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
RE: Where are the log levels settings of Log Level Portlet?
22 de Maio de 2008 12:20
Resposta

Robert Zahm

Ranking: Junior Member

Mensagens: 46

Data de entrada: 8 de Outubro de 2007

Mensagens recentes

Guru,

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

Thanks,

Rob
Medha Sutaria
RE: Where are the log levels settings of Log Level Portlet?
18 de Maio de 2010 05:27
Resposta

Medha Sutaria

Ranking: Junior Member

Mensagens: 31

Data de entrada: 11 de Agosto de 2008

Mensagens recentes

Here's the new URL for this article -
http://www.liferay.com/community/wiki/-/wiki/Main/How+to+configure+the+logs+in+Liferay
Michael Poznecki
RE: Where are the log levels settings of Log Level Portlet?
18 de Maio de 2010 10:34
Resposta

Michael Poznecki

Ranking: Expert

Mensagens: 301

Data de entrada: 10 de Dezembro de 2008

Mensagens recentes

I had the same question.