[Beginners Corner] - lo4j levels with Jboss App server
by trouby
Hey,
I have some classes which I've added a static reference to the logger as:
| private static Logger logger = Logger.getLogger(MyClass.class.getName());
|
where MyClass full pkg is "rootPkg.subPkg.MyClass"
Then I simply use the logger in many places by invoking logger.debug("message"), etc...
Now assuming I want to have logs for ALL levels -ONLY- for MyClass, how do I do it?
I tried to add to jboss-log4j.xml a category such as:
| <category name="rootPkg.subPkg">
| <priority value="TRACE"/>
| </category>
|
but it did not affect anything and I only got messages at INFO level,
In the console appender, I have seen the
| <param name="Threshold" value="INFO"/>'
|
parameter, but when I change this line it affects all loggers in all packages,
any clue?
Thanks,
Asaf.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069710#4069710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069710
18Â years, 8Â months
[JBoss Seam] - Re: show me the right way to access row of datatable with Se
by tim_ph
When I did that @DataModel(scope=ScopeType.CONVERSATION)
it failed to deploy with this error
| 2007-08-01 10:25:30,590 INFO [org.jboss.seam.Component] Component: applicationHome, scope: CONVERSATION, type: JAVA_BEAN, class: com.insolve.policy.ApplicationHome
| 2007-08-01 10:25:30,606 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/tim]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: Could not create Component: applicationHome
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:908)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:839)
| at org.jboss.seam.init.Initialization.init(Initialization.java:506)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069703#4069703
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069703
18Â years, 8Â months