You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Joern Nettingsmeier <po...@uni-due.de> on 2006/08/21 14:26:51 UTC

how does log4j logging work?

hi everyone!


can anyone explain how to do the following?:

* dump all log levels to the console when running tests? (i need this to
chase a problem with andreas' repository migration test)
* redirect specifig loggers to files

i'm sure this is a trivial issue and would welcome pointers to
documentation. my google searches were not successful - millions of
hits, but no concise overview...

thanks in advance,

jörn



-- 
"I don't need backups. I need restore!" - Trad.

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how does log4j logging work?

Posted by so...@apache.org.
On 8/21/06, Joern Nettingsmeier <po...@uni-due.de> wrote:
> can anyone explain how to do the following?:
> * dump all log levels to the console when running tests? (i need this to
> chase a problem with andreas' repository migration test)

FILE: build/lenya/webapp/WEB-INF/log4j.xconf
CHANGE:
    <appender name="COCOON_DEFAULT" class="org.apache.log4j.FileAppender">
TO:
    <appender name="COCOON_DEFAULT" class="org.apache.log4j.ConsoleAppender">
CHANGE:
      <priority value ="error" />
TO:
      <priority value ="info" />


> * redirect specifig loggers to files
Maybe you can now figure it out from reading that file.  I am better
with log4j.properties, and a quick attempt at adding a file logger did
not work.  I could not decide if the category name should be a class
name or a logger name.  The example implies it is a class name, but
everything I know says it should be a logger name.

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org