> >> Hi all,
> >>
[quoted text clipped - 45 lines]
> I've to distribute this application to many sites and I don't want to change
> the properties file for every client.
There is a pretty good article about how logging works and how to do
almost anything you can ever want with it. If you look at the API
documentation in the JDK, you should see a major section called "Guide
to Features - Java Platform". In the subsection called Base Libraries,
you will find a link for "Logging". If you click on that link, you go
to a short page entitled Java Logging APIs. If you click the first link
on that page, "Logging Overview", you will get the document that
describes the concepts behind Logging in Java.
I think this document should answer most of your questions. You should
also be aware that you can set the properties for logging on your
system in the logging.properties file, which you should find in the lib
directory of the JRE (or the jre/lib directory of your JDK).
--
Buzz
scoffer - 21 Jun 2006 20:44 GMT
scoffer wrote:
> "Eduardo Yáñez Parareda" <eduardo.yanezNOSPAM@NOSPAMgmail.com> ha scritto
> nel messaggio news:4fqms7F1k9r5iU2@individual.net...
[quoted text clipped - 51 lines]
> change
> the properties file for every client.
There is a pretty good article about how logging works and how to do
almost anything you can ever want with it. If you look at the API
documentation in the JDK, you should see a major section called "Guide
to Features - Java Platform". In the subsection called Base Libraries,
you will find a link for "Logging". If you click on that link, you go
to a short page entitled Java Logging APIs. If you click the first link
on that page, "Logging Overview", you will get the document that
describes the concepts behind Logging in Java.
I think this document should answer most of your questions. You should
also be aware that you can set the properties for logging on your
system in the logging.properties file, which you should find in the lib
directory of the JRE (or the jre/lib directory of your JDK).
--
Buzz
The solution is very simple ..... just create the logger with anonymous
reference like this:
private static Logger theLogger = Logger.getLogger("");
and the console logger get the same level and formatter from the
fileHandler.
Thanks for the informations.