C
cyberco
I'm developing a simple web service using Apache, Tomcat 5, Axis 1.4
Instead of using System.out.println I'm trying to setup logging for
Axis. Unfortunately this is more complex than I expected. Basically,
for starters, I want to have the logging output go to the console (or
to a file). I've tried to use the java.util.logging package for this:
===========================================
import java.util.logging.Logger;
Logger logger = Logger.getLogger("MyLogger");
logger.addHandler(new ConsoleHandler());
logger.setLevel(java.util.logging.Level.FINEST);
logger.info("hello");
===========================================
This doesn't work.
What is the simplest way to setup logging in Axis? Am I on the right
track or should I use configuration files or so?
2B
Instead of using System.out.println I'm trying to setup logging for
Axis. Unfortunately this is more complex than I expected. Basically,
for starters, I want to have the logging output go to the console (or
to a file). I've tried to use the java.util.logging package for this:
===========================================
import java.util.logging.Logger;
Logger logger = Logger.getLogger("MyLogger");
logger.addHandler(new ConsoleHandler());
logger.setLevel(java.util.logging.Level.FINEST);
logger.info("hello");
===========================================
This doesn't work.
What is the simplest way to setup logging in Axis? Am I on the right
track or should I use configuration files or so?
2B