Re: approach for defining loggers

2015-09-02 Thread Mikael Ståldal
You probably want to use INFO level for most of your business events. I would consider INFO as the "neutral" level. Below INFO (DEBUG, TRACE) means "can be ignored" and above INFO (WARN, ERROR, FATAL) means "attention please!". On Wed, Sep 2, 2015 at 12:26 AM, Nicholas Duane

Re: Question about RollingFileAppender

2015-09-02 Thread Remko Popma
Jerry, As of now, log4j 2 does not support auto-delete on rollover. However, this is a commonly requested feature and is on the todo list. We just haven't gotten around to working on it yet. The relevant Jira ticket is https://issues.apache.org/jira/browse/LOG4J2-435 Remko Sent from my

Re: FileAppender append="false" does not truncate the file on startup

2015-09-02 Thread Ralph Goers
You have both the FileAppender and RollingFileAppender writing to the same file. This is certainly going to cause problems. I wouldn't be surprised at all if Java causes them to share the same OS File and stream objects so only one of the ones Java requests actually works. If it didn't do