Hi,
I am trying to replace the System.out.println() logging in my custom tag
library with log4j (using jakarta 3.2.1). I have added
Category.getInstance() calls in each tag but I am not sure where I
should add the log4j initialisation code. Do I just have a static
initialisation block in one of the tags I think will get loaded quickly
? I tried this and I can see messages from the static block in the log
file but not messages from other classes - I am not sure why not. But
this doesn't seem a very clean way of initialising log4j but I am not
sure what else I can do.
Any clues to point me in the right direction would be much appreciated.
What I am really aiming for is a way of logging all activity from
several custom tag libraries in a single log file.
Regards
Doug
--
Doug Grimwade [EMAIL PROTECTED]
Olive Systems Limited Tel:01206 217961
The Old Exchange, 64 West Stockwell Street, Fax:01206 575101
Colchester, Essex, CO1 1HE, England Mob:07775 556535