I would like to specify category name in log4j.xml but at the same time I don't want to hard code it. I need to say all loggers ending with some suffix has to go into particular appender, I guess my question how can specify that in category name in log4j.xml.
Can you use a prefix instead? (I'm not sure how you would do it with a common suffix.)
For example using package type naming system you can configure a category com.foo with debug level and appender(s) that would apply to Loggers with names that start with com.foo. such as: