This content has been marked as final.
Show 1 reply
-
1. Re: Logging best practice
wdfink Dec 13, 2013 8:54 AM (in response to lachen)Having a console appender for trash will have issues. Consider that the log message needs to be prepared, ok might be done anyway for other, but the appender is synchronous and you might have small possiblity here for a drawback.
So I would remove it for productive instances, but you might redirect the output to a file because of other hard messages, i.e. crashes.
Rolling and archiving depend on your requirements. I've used a custom-appender with a per size OR day what ever is first.
If you have a disc space issue you might use a per-size handler and move the old logfiles to a external (slower) disc by cron and zipping it.