Hello Abhinay,
You should also have a look at SiftingAppender [1] which was specifically
designed to deal with cases such as yours. Just one extra line of code at the
start of your executor thread should be sufficient to address your problem.
SiftingAppender will do all the heavy lifting for y
A better way to handle this case is to have a custom appender that
routes the message to the appropriate file (which be delegating to a
RFA if you so desire). Search the dev archives for the
MultiFileAppender to read previous discussion on the topic and links
to the sandbox implementation.
(%F:%L) * %m%n
your help will makes me happy.
--
View this message in context:
http://www.nabble.com/log4j-logger-writing-log-in-wrong-files-tp22097143p22097143.html
Sent from the Log4j - Users mailing list archiv