Log4j is organized with categories, usually category reflect package and class name. Easiest way to separate logs is through specific category which gets its own appender. You can achieve sikilar results with filters, however they are much more complex in setup.
Look if place where you produce log statements have possibilty to specify category.