I am currently using SLF4J with log4j-over-slf4j
and logback-classic
.
The program processes files in a loop.
I need to create a separate log file for each iteration of the program. Can someone point me to the sample code or code snippet? I have done enough research but running in circles with SLF4J, log4j and Kogback.
Preferably, I would like to do all configuration programmatically, instead of a properties file.