Why not use this: import org.apache.log4j.Logger; import org.apache.log4j.BasicConfigurator;
public class HXDbg { public static Logger glog = Logger.getLogger( HXDbg.class.getName() );; static { BasicConfigurator.configure(); } } I have no idea whether it will fix your problem though. But AFAIK you do not need to call configure() before you get a Logger (someone correct me if I'm wrong). Cheers, Scott Joel Rees wrote: > I realize I should be using tags for this, but I need to figure out the > basics, first. > > Basically just converting class that sort of worked with Category to use > Logger: > > ---.jsp-------------------- > <%@ page import="HXDbg" %> > ... > HXDbg.glog.debug( "First log from TestMenu." ); > ... > > ---HXDbg.java-------------- > import org.apache.log4j.Logger; > import org.apache.log4j.BasicConfigurator; > > public class HXDbg > { > public static Logger glog; > static > { > BasicConfigurator.configure(); > HXDbg.glog = Logger.getLogger( HXDbg.class.getName() ); > } > } > > ---error------------------- > Root cause: > java.lang.NoSuchFieldError: glog > {from the referring .jsp} > > ---functioning HXDbg.java---- > import org.apache.log4j.Category; > import org.apache.log4j.BasicConfigurator; > > public class HXDbg > { > public static Category glog; > static > { > BasicConfigurator.configure(); > HXDbg.glog = Category.getInstance( HXDbg.class.getName() ); > } > } > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>