1 message in org.apache.logging.log4j-userRollingFileAppender behavior - is thi...
FromSent OnAttachments
Rajkumar, PulpetJun 3, 2004 8:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RollingFileAppender behavior - is this a bug?Actions...
From:Rajkumar, Pulpet (Pulp@fmr.com)
Date:Jun 3, 2004 8:43:30 am
List:org.apache.logging.log4j-user

When I configure log4j (ver 1.2.8) to use RollingFileAppender and if I forget to specify the filename in the configuration file, then log4j treats the null filename as a warning and shows the message "Are you using FileAppender instead of ConsoleAppender?"

Is this a bug and if yes is it possible to change the above behavior to throw an error (via the errorHandler) instead of a warning? This is similar to the way log4j acts if it encounters errors in opening the file (specified by the RollingFileAppender property).

This way if I configure log4j to use file appenders then it will ensure that I also specify the file name correctly.