[jboss-user] [JBoss Seam] - Re: Using an @Logger instance outside of a SEAM POJO

ccanning do-not-reply at jboss.com
Fri Dec 15 18:38:52 EST 2006


This is how I get/create a seam logger outside of seam managed components. 


  | 
  | import org.jboss.seam.log.Log;
  | import org.jboss.seam.log.LogImpl;
  | 
  | /**
  |  * This will provide various utility/helper methods for dealing with seam.
  |  * @author Charles Canning
  |  */
  | public class SeamHelper {
  |     private SeamHelper() {
  |     }
  | 
  |     public static Log getLogger(Class clazz) {
  |         return new LogImpl(clazz);
  |     }
  | 
  |     public static Log getLogger(String name) {
  |         return new LogImpl(name);
  |     }
  | }
  | 
  | 


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

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



More information about the jboss-user mailing list