There is a little but annoying problem with custom category names in log4j.
My goal is to filter logger output to show only output from my modules.
I have the following code:
Then, in log4j.properties I write:
WMSLoggerFactory.getLoggerObj(appInst).info("my comment blah blah", "ether", "comment", 200, appInst.getApplication().getName()+"/"+appInst.getName());
But log4j not allows this, sending following to stderr:
At the moment, I use this workaround:
Log file configuration error: Invalid category name in CategoryInclude: ether
But it not seems to be a good way.
Can somebody tell me where to dig?