I am creating a solution for my application log, which have various types of logging (user, application, etc…), wanted to save each type of log in a separate file.
This is possible with log4j or some other API?
How could I do that?
If you deem interesting, I edit the question and put the codes, but I do not think it’s worth, they are still very basic.
Thanks in advance.
Of cource, use different FileAppenders
Example from internet:
Now you can log to admin.log
Logger.getLogger("com.vaannila.admin").log("To admin log")and to report logLogger.getLogger("com.vaannila.report").log("To report log")