By design the appender interface in log4j is for writing data to a log file. However when you implement it, you could certainly cram in any old code that you wanted to, including code to read an XML file. I wouldn't do that, though, it really doesn't sound like a sensible thing to do.
Would you like to back up one question? Ask the question to which that idea was the answer.
So,
what is the different between Appender interface and xml configuration file
yes, i know(structure of log4j that is Logger,Appender, Layout). using xml configuration file to we can define the appender. am right.
so, what about Appender Interface do? why we used? whether this(Appender Interface) is optional one in log4j?
please explain neatly......
thanks for reading...