H
Hendrik Maryns
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
After seeing part of the discussion on exceptions, I decided my
application has matured enough that it deserves logging. I’ve been
happy with console messages as long as I was developing, but now I have
testers, and the log files would be useful.
I read the basic document on logging
(http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html),
and also http://www.onjava.com/pub/a/onjava/2002/06/19/log.html, but the
examples in the first are rather concise, and the second contains errors
(there is no such thing as
LogManager.getLogManager().setLevel("logging", Level.FINE)
.
To make it short, I found no simple introduction in how to set up a
system with logging, or rather: what is common practice. Like: what
variables do you declare, typical setup for a Swing application, what is
a good value for the limit argument of FileHandler(String pattern, int
limit, int count) etc. etc.
An introduction, anyone?
TIA, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIUSP8e+7xMGD3itQRApfmAJ9WDKjyQxIH3KdxCfoilvg50IAY0gCdGWrL
MEFoeLWJgD50vY1wdlMOr74=
=MQtY
-----END PGP SIGNATURE-----
Hash: SHA1
Hi all,
After seeing part of the discussion on exceptions, I decided my
application has matured enough that it deserves logging. I’ve been
happy with console messages as long as I was developing, but now I have
testers, and the log files would be useful.
I read the basic document on logging
(http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html),
and also http://www.onjava.com/pub/a/onjava/2002/06/19/log.html, but the
examples in the first are rather concise, and the second contains errors
(there is no such thing as
LogManager.getLogManager().setLevel("logging", Level.FINE)
To make it short, I found no simple introduction in how to set up a
system with logging, or rather: what is common practice. Like: what
variables do you declare, typical setup for a Swing application, what is
a good value for the limit argument of FileHandler(String pattern, int
limit, int count) etc. etc.
An introduction, anyone?
TIA, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIUSP8e+7xMGD3itQRApfmAJ9WDKjyQxIH3KdxCfoilvg50IAY0gCdGWrL
MEFoeLWJgD50vY1wdlMOr74=
=MQtY
-----END PGP SIGNATURE-----