Hello
wasn't sure if this is the right forum for this...
Has any one had any experience getting log4j/apache commons logging working when building custom channels?
I can get System.out.println outputting in $CP_ROOT/products/ws/https-cp/logs/errors but have not had any luck getting classes in my .car files in $CP_ROOT/webapps/luminis/WEB-INF/cars to log using log4j/apache commons logging.
ideally it would be fab to log each .car to its own log file..
cheers
nomit
*Example debug
*Example debug code*
When you need to debug a particular class/package...
Backup, then edit
$CP_ROOT/webapps/luminis/WEB-INF/config/cplog4j.propertiesAdd the lines...
then
tail -f $CP_ROOT/logs/cp.logWhen you're done, remove/comment out the class/package in
$CP_ROOT/webapps/luminis/WEB-INF/config/cplog4j.properties*If you want to be extra fancy*, you could add your own log file for this particular channel...
So instead add (something like)...
to
$CP_ROOT/webapps/luminis/WEB-INF/config/cplog4j.propertiesthanks uon_david!
Cheers for this - will give it a spin.
I was wondering if you have managed to seperate these configurations?
ie keep a seperate properties file for your own apps? to save customisation after upgrades etc.
I googled to see if there was any mention of a "includes" way of adding
log4j configs but couldn't see anything
cheeeeers
No.
We've not done what you suggested with "log4j includes".
Dunno whether it's possible either.
D.
having issues
I've tried this and nothing ever gets written to the log file, although the file was created. Does this only work with actual channel classes (classes that extend the base channel class) or can you log for any other class included in a car file? like i've got an smtp class and i only really need to log from it, so i've set up it for that class only, but it doesn't work for some reason...