[jboss-user] [JBoss Seam] - Re: Issues moving from Seam 1.1.0 to Seam 1.1.5

gavin.king@jboss.com do-not-reply at jboss.com
Wed Feb 7 20:44:32 EST 2007


The point of this is to get rid of crap like:

private static final Log log = LogFactory.getLog(Customer.class);

if ( log.isDebugEnabled() ) {
  |     log.debug("deleting customer " + customer.getName() + " in region " + customer.getRegion());
  | }

And let you use:

@Logger private static final Log log;

log.debug("deleting customer #{customer.name} in region #{customer.region}");
  | }

I don't know about you, but I think thats a *significant* improvement in readability.

I don't think we did a bad job on this.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012756#4012756

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012756



More information about the jboss-user mailing list