The Artima Developer Community
Sponsored Link

Java Buzz Forum
minimze redundancy or logger design

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aleksander Slominski

Posts: 51
Nickname: aslom
Registered: May, 2003

Aleksander Slominski is a Ph.D. student at Indiana University working on components, XML, and grids.
minimze redundancy or logger design Posted: Jul 16, 2003 10:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Aleksander Slominski.
Original Post: minimze redundancy or logger design
Feed Title: alek blogs java
Feed URL: http://www.extreme.indiana.edu/~aslom/blog/java/index.xml
Feed Description: discovering limits of programming
Latest Java Buzz Posts
Latest Java Buzz Posts by Aleksander Slominski
Latest Posts From alek blogs java

Advertisement
what is the difference between those two lines?
class Baz {
    Logger logger = Logger.getLogger(Baz.class);
and
class Bar {
    Logger logger = Logger.getLogger(Baz.class);
the problem is of course that prblmey user did not want to use logger from Baz class in Bar class and it may be an annoying bug. what about this:
class Baz {
    Logger logger = Logger.getLogger();
now this version is safe and less redundancy. and is available as part of my minilogger :-)

Read: minimze redundancy or logger design

Topic: Open Source Java CSS Parsers? Previous Topic   Next Topic Topic: Childreach and _About Schmidt_

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use