All log messages of my Spring application are currently going in a single log file. But, i need to write the log statements of one specific java class in another log file. Can anyone please tell how to do this?
This is the responsibility of the logging framework not Spring. For all new projects I suggest using Logback (the log4j replacement, has the same author) along with the SL4J abstraction. You would want in particular a File Appender on a logger set to that class. I suggest starting with the Logback documentation, and then coming back if you have any more questions.