On 6/5/2013 3:46 AM, Raheel Hasan wrote:
> OK thanks... it works... :D
> 
> Also I found that we could put both of them and it will also work:
> log4j.rootLogger=INFO, file
> log4j.rootLogger=WARN, CONSOLE

If this completely separates INFO from WARN and ERROR, then you would
want to rethink and probably use what Bernd suggested.  I don't know if
this is what happens.

It's easier to understand a logfile if you can see errors, warnings, and
informational messages together in context.  If the more severe messages
are only logged to CONSOLE, then you lose them.  Even if you then
redirect the console to a file outside of Solr, you would need to try
and piece the full log together based on timestamps from two files, and
sometimes things happen too fast for that, even if you're logging with
millisecond accuracy.

Thanks,
Shawn

Reply via email to