Sagewire Logo

JAVA Logger vs Log4J

2 Message(s) by 2 Author(s) originally posted in java api


From: Tony Lockyer Date:   Monday, July 26, 2004
I'm trying to customize the output of JAVA Logger (format the output)
like you can do using Log4J. Anyone know if it is possible?


From: Chris Date:   Wednesday, July 28, 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

wrote in message:

I'm trying to customize the output of JAVA Logger (format the
output)
like you can do using Log4J. Anyone know if it is possible?



Hi,
I have never used Log4J so I do not know what it looks like. You should
be able to duplicate just about any output formatting by writing your
own custom subclass of JAVA.util.logging.Formatter and attaching it
to the appropriate Handler object.

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBB9GCgxSrXuMbw1YRAq4yAKCZWmdReDRlz+CfMUuzrM3kPelDAgCgo0k/
jNvqs81Ze4lWnzDGX4/PXQs=
=e4tX
-----END PGP SIGNATURE-----



Next Message: i18n problem, involving Locale.getDisplayLanguage and Locale.getDisplayCountry


Blogs related to JAVA Logger vs Log4J

Ruby on Rails book review and cheatsheet
When coding in Java, I’d get an idea in my head, start brainstorming about how it would ... I’m going to need logging - get the latest log4j jars. ... Hours vs minutes makes a lot of difference. Just getting the project started is much ...

Log4j vs Java 1.4 Logging - Is there a difference?
David — Log4j vs Java 1.4 Logging - Is there a difference?

Spy vs. Spy: Jakarta Un-common(s) Logging Vs. Java Util Logging
It has been few years since java.util.logging became part of standard J2SE distributions. Almost everyone understands that it does not have all the "nice little features" that Log4J has. The JApachies have come up with the Commons ...

Wicket - Interesting Java Web Framework
Lets face it, Java MVC web application frameworks are a dime a dozen. ... want for production vs. development //getSettings().configure(”development”); ... log4j.properties - log4j properties of your making (or java.util.logging ...

Rails Integration vs. Java Integration
Which Java technologies would provide the current functionality of the Rails application? ... Logger, Log4J. Mailer, Spring. Views, JSP. Uploads, Spring ... Spring XML, dynamically-typed Ruby vs. statically-typed Java, etc). ...

GeoServer WFS-T
TODO: transaction = request.getHandle() == null ? new DefaultTransaction() : new DefaultTransaction( request.getHandle() ); Finally GeoServer makes use of the java.util.logging facilities, we used Log4j for the longest time and you may ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional