Newbie ... can't find Java.util.logging.LogManager addGlobalHandler

C

Colin Foulkes

Hi I'm really new to Java, and while trying to follow some sample code
using LogManager etc I've come across a problem.

My version of LogManager doesn't seem to have all the methods shown in
the online documentation (for example addGlobalHandler).

I'm using netbeans ide and my java_home is pointing to jsdk1.4.2.

I feel I'm missing something blindingly obvious....


If you have any suggestions, please fire away..

Thanks,
Colin
 
N

nos

Colin Foulkes said:
Hi I'm really new to Java, and while trying to follow some sample code
using LogManager etc I've come across a problem.

My version of LogManager doesn't seem to have all the methods shown in
the online documentation (for example addGlobalHandler).

I'm using netbeans ide and my java_home is pointing to jsdk1.4.2.

I feel I'm missing something blindingly obvious....


If you have any suggestions, please fire away..

Thanks,
Colin

I use this:
static Logger logger = Logger.getLogger("global");
ch = new ConsoleHandler();
logger.addHandler(ch);
 
C

Colin Foulkes

nos said:
I use this:
static Logger logger = Logger.getLogger("global");
ch = new ConsoleHandler();
logger.addHandler(ch);

Thanks for your response, but I'm not really looking for an
alternative.
I'm more curious as to why the version of my LogManager class doesn't
contain the methods shown in various tutorials.

Do I have an old version, and if so, how can I tell?

Thanks again

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top