I have a RepositorySelector that manages several logging hierarchies and I want to send the output of each Hierarchy to its own log file. I would like to use the same configuration file for all of the Hierarchies, but have a different log file for each Hierarchy. I'm using PropertyConfigurator and FileAppender. Here are the contents of my log4j.properties file:
# Set root logger to DEBUG and add an appender named A1 log4j.rootLogger=DEBUG, A1 # Set appender A1 to be FileAppender log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=C:\\JavaJobScheduler\\logs\\job_scheduler.log log4j.appender.A1.Append=false # Set appender A1 to use PatternLayout log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %r [%t] %-5p %c.%M(): %m%n Can this be done through configuration, or do I have to do it programmatically? Is there an example? Thanks, Bob --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]