[Building Sakai] About Log4j

Berg, Alan A.M.Berg at uva.nl
Wed Jan 19 06:15:47 PST 2011


https://confluence.sakaiproject.org/display/DOC/Troubleshooting+%282.3%29

Happily, logging levels can now also be specified in sakai.properties. This augments and overrides the levels set in the default config file. Example:

log.config.count=3
log.config.1 = ALL.org.sakaiproject.log.impl
log.config.2 = OFF.org.sakaiproject
log.config.3 = DEBUG.org.sakaiproject.db.impl

This uses the established (but awkward) method of having a name.count followed by name.1, name,2, etc. to form an array of strings for the value "name". In this case, the name is "log.config". The values are of the form LEVEL.logger, and the possible levels are: OFF TRACE DEBUG INFO WARN ERROR FATAL ALL.

As you can see, Sakai uses log4j for logging. See the official log4j documentation for more information about how to configure it if you have questions.


Alan

Alan Berg
QA Director - The Sakai Foundation

Senior Developer / Quality Assurance
Group Education and Research Services
Central Computer Services
University of Amsterdam

http://home.uva.nl/a.m.berg
________________________________
From: sakai-dev-bounces at collab.sakaiproject.org [sakai-dev-bounces at collab.sakaiproject.org] on behalf of Miguel Carro Pellicer [farreri.sakai at gmail.com]
Sent: 19 January 2011 15:00
To: sakai-dev at collab.sakaiproject.org
Subject: [Building Sakai] About Log4j

Hi All.

I want to know if exists a way to change the Log4J log level, the objective is to display only ERROR messages.

I readed the documentation in confluence and works fine with kernel change, but our deployment is complete and we don't want to recompile the kernel again because we consider is a property.

I want to know if exists a workaround to do that, maybe with java_opts? Maybe the file can be overwritten in tomcat?

Thanks in advance, Miguel.
--
[cid:image001.jpg at 01C9F98A.71C74E60]<http://www.samoo.es/>
 <http://www.samoo.es/>
Miguel Carro Pellicer
Technical Manager - Director técnico
miguel.carro at samoo.es<mailto:miguel.carro at samoo.es>
+34 - 96 393 69 15
www.samoo.es<http://www.samoo.es>

Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario.”

This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee’s, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files.

P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110119/5f0f4337/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3022 bytes
Desc: image002.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110119/5f0f4337/attachment.jpg 


More information about the sakai-dev mailing list