You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Pedro Costa <pe...@link.pt> on 2006/03/15 17:36:38 UTC

log file is huge

When projects starts to get bigger, the log file starts to get bigger too,
and less readable.

Is there any advice for this problem?

Is there any book that teaches how to use log4j in big projects?

Thanks,
Pedro


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


Re: log file is huge

Posted by Norbert Toth-Gati <no...@gmail.com>.
You should try to break down the big log file into different log
files, which will save messages for a specific category - these may be
groupped by packages, or the way you think it will make more sense.

You may not need a cool book that teaches it, you have to figure it
out which log messages make more sense, and to be able to log
different categories to different files, try to create loggers with
appropriate names.

Regards,
Norbert

On 3/15/06, Pedro Costa <pe...@link.pt> wrote:
> When projects starts to get bigger, the log file starts to get bigger too,
> and less readable.
>
> Is there any advice for this problem?
>
> Is there any book that teaches how to use log4j in big projects?
>
> Thanks,
> Pedro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

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


Re: log file is huge

Posted by James Stauffer <st...@gmail.com>.
Options:
Split your logs into multiple files (By level or logger branch)
Look through your logs and determine if there is anything that you
want to remove by changing the configuration.
Use some type of rolling appender.

On 3/15/06, Pedro Costa <pe...@link.pt> wrote:
> When projects starts to get bigger, the log file starts to get bigger too,
> and less readable.
>
> Is there any advice for this problem?
>
> Is there any book that teaches how to use log4j in big projects?
>
> Thanks,
> Pedro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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