i want to log messages from multiple classes. the problem is that currently i can log all messages into single file.i want to do this class A should log its messages into ALog.txt and class B should log its messages into BLog.txt
please tell me the sample config file for these settings
In addition to the
rootlogger, you can configure individual loggers with their own appenders. Assuming you are calling your loggersClassAandClassByou can do:This is further described here.