Hi Dimitris,
Not quite sure how you would do it I'm afraid - the obvious way would be
to allow the application to bundle it's own log4j.xml file which
overrides the AS one, but that doesn't seem to work in the current code
base. Want me to file a feature request?
But I do believe Seam is using log levels consistently with JBoss AS.
AFAICT, Seam is very noisy. Most of the info I'm trying to avoid should be logged at
DEBUG
level.
Jaikiran proposed to still log this info, but only to the server.log, not the console.
Could you comment on which reduction you would like to see? I would
prefer to not loose most of those messages for the majority of users in
JBoss, as they are very help for debugging, and most people will adjust
their logging in production anyway (definitely we should have WARN on a
production profile).
1) Version number logged at INFO - see
* INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build:
SVNTag=JBoss_5_0_1_GA date=200902232048)
* INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
* INFO [NativeServerConfig] 3.0.5.GA
* INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
* INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
etc.
2) Logging discovery of components
INFO [JBossASKernel] installing bean:
jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=SentenceTranslator,service=EJB3
INFO [JBossASKernel] with dependencies:
INFO [JBossASKernel] and demands:
INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
INFO [JBossASKernel] and supplies:
INFO [JBossASKernel]
jndi:webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.translator.Translator
INFO [JBossASKernel]
Class:org.jboss.webbeans.examples.translator.Translator
INFO [JBossASKernel] jndi:webbeans-translator/SentenceTranslator/local
INFO [JBossASKernel]
jndi:webbeans-translator/SentenceTranslator/remote
INFO [JBossASKernel] Added
bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=SentenceTranslator,service=EJB3)
to KernelDeployment of: webbeans-translator.jar
INFO [JBossASKernel] installing bean:
jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3
INFO [JBossASKernel] with dependencies:
INFO [JBossASKernel] and demands:
INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
INFO [JBossASKernel] and supplies:
INFO [JBossASKernel]
jndi:webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examples.translator.TranslatorController
INFO [JBossASKernel]
Class:org.jboss.webbeans.examples.translator.TranslatorController
INFO [JBossASKernel]
jndi:webbeans-translator/TranslatorControllerBean/remote
INFO [JBossASKernel]
jndi:webbeans-translator/TranslatorControllerBean/local
INFO [JBossASKernel] Added
bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3)
to KernelDeployment of: webbeans-translator.jar
etc.
This is probably crap. It doesn't have to be that verbose in the console. You just
need to
know that something got deployed, you don't need to know the full dependency list, it
should
be at DEBUG level.
3) warning people about deprecation (standard practice, easy to fix :-)
4) Logging start of components
INFO [EJBContainer] STARTED EJB:
org.jboss.webbeans.examples.translator.SentenceTranslator ejbName:
SentenceTranslator
INFO [JndiSessionRegistrarBase] Binding the following Entries in
Global JNDI:
webbeans-translator/SentenceTranslator/local - EJB3.x Default Local
Business Interface
webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.translator.Translator
- EJB3.x Local Business Interface
INFO [SessionSpecContainer] Starting
jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3
INFO [EJBContainer] STARTED EJB:
org.jboss.webbeans.examples.translator.TranslatorControllerBean ejbName:
TranslatorControllerBean
INFO [JndiSessionRegistrarBase] Binding the following Entries in
Global JNDI:
webbeans-translator/TranslatorControllerBean/local - EJB3.x Default
Local Business Interface
webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examples.translator.TranslatorController
- EJB3.x Local Business Interface
5) where configuration is read from e.g.
INFO [ServerImpl] Starting Microcontainer,
bootstrapURL=file:/Applications/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
INFO [RARDeployment] Required license terms exist, view
vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
INFO [RARDeployment] Required license terms exist, view
vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
INFO [RARDeployment] Required license terms exist, view
vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
INFO [RARDeployment] Required license terms exist, view
vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
INFO [RARDeployment] Required license terms exist, view
vfszip:/Applications/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
6) Enabled configurations (namespaces)
INFO [ServerImpl] Server Name: default
INFO [ServerImpl] Server Base Dir: /Applications/jboss-5.0.1.GA/server
INFO [ServerImpl] Server Base URL:
file:/Applications/jboss-5.0.1.GA/server/
INFO [ServerImpl] Server Config URL:
file:/Applications/jboss-5.0.1.GA/server/default/conf/
INFO [ServerImpl] Server Home Dir:
/Applications/jboss-5.0.1.GA/server/default
INFO [ServerImpl] Server Home URL:
file:/Applications/jboss-5.0.1.GA/server/default/
INFO [ServerImpl] Server Data Dir:
/Applications/jboss-5.0.1.GA/server/default/data
INFO [ServerImpl] Server Library URL:
file:/Applications/jboss-5.0.1.GA/server/default/lib/
INFO [ServerImpl] Server Log Dir:
/Applications/jboss-5.0.1.GA/server/default/log
INFO [ServerImpl] Server Native Dir:
/Applications/jboss-5.0.1.GA/server/default/tmp/native
INFO [ServerImpl] Server Temp Dir:
/Applications/jboss-5.0.1.GA/server/default/tmp
INFO [ServerImpl] Server Temp Deploy Dir:
/Applications/jboss-5.0.1.GA/server/default/tmp/deploy
On 15 Apr 2009, at 12:18, Dimitris Andreadis wrote:
> How? The log4j settings are global.
>
> You need to make sure you use properly the various logging levels.
>
> Pete Muir wrote:
>> Can we make sure this is for just the admin-console, not the whole AS
>> please?
>> On 15 Apr 2009, at 11:58, Dimitris Andreadis wrote:
>>> I'm thinking of applying the following to reduce the verbose logging:
>>>
>>> <!-- Limit the verbose facelets compiler -->
>>> <category name="facelets.compiler">
>>> <priority value="WARN"/>
>>> </category>
>>>
>>> <!-- Limit the verbose ajax4jsf cache initialization -->
>>> <category name="org.ajax4jsf.cache">
>>> <priority value="WARN"/>
>>> </category>
>>>
>>> <!-- Limit the verbose embedded jopr categories -->
>>> <category name="org.rhq">
>>> <priority value="WARN"/>
>>> </category>
>>>
>>> <!-- Limit the verbose seam categories -->
>>> <category name="org.jboss.seam">
>>> <priority value="WARN"/>
>>> </category>
>>>
>>> Jaikiran Pai wrote:
>>>> Looks good :)
>>>> On a related note, I guess we could do something about the INFO
>>>> level logs that flood the console when the admin-console is being
>>>> deployed and accessed? Looking at what is being logged, it doesn't
>>>> look like they should be logged at INFO level:
>>>> During deploy:
>>>> 16:10:56,870 INFO [config] Initializing Mojarra (1.2_12-b01-FCS)
>>>> for context '/admin-console'
>>>> 16:10:59,852 INFO [ServletContextListener] Welcome to Seam 2.1.0.SP1
>>>> 16:11:03,583 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/security, package:
>>>> org.jboss.seam.security, prefix: org.jboss.seam.security
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/international, package:
>>>> org.jboss.seam.international, prefix: org.jboss.seam.international
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/document, package:
>>>> org.jboss.seam.document, prefix: org.jboss.seam.document
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/persistence, package:
>>>> org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/cache, package:
>>>> org.jboss.seam.cache, prefix: org.jboss.seam.cache
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/ui, package: org.jboss.seam.ui,
>>>> prefix: org.jboss.seam.ui
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/security, package:
>>>> org.jboss.seam.security.permission, prefix: org.jboss.seam.security
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/core, package: org.jboss.seam.core,
>>>> prefix: org.jboss.seam.core
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/captcha, package:
>>>> org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
>>>> 16:11:03,584 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/async, package:
>>>> org.jboss.seam.async, prefix: org.jboss.seam.async
>>>> 16:11:03,585 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/drools, package:
>>>> org.jboss.seam.drools, prefix: org.jboss.seam.drools
>>>> 16:11:03,585 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/mail, package: org.jboss.seam.mail,
>>>> prefix: org.jboss.seam.mail
>>>> 16:11:03,585 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/transaction, package:
>>>> org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
>>>> 16:11:03,585 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/web, package: org.jboss.seam.web,
>>>> prefix: org.jboss.seam.web
>>>> 16:11:03,585 INFO [Initialization] Namespace:
>>>>
http://jboss.com/products/seam/security, package:
>>>> org.jboss.seam.security.management, prefix: org.jboss.seam.security
>>>> ...//trimmed more similar log
>>>> 16:11:03,587 INFO [Initialization] reading /WEB-INF/components.xml
>>>> 16:11:03,598 WARN [Initialization] <action
>>>> expression="#{redirect.captureCurrentView}" /> has been
deprecated,
>>>> use <action execute="#{redirect.captureCurrentView}" />
instead
>>>> 16:11:03,598 WARN [Initialization] <action
>>>> expression="#{redirect.returnToCapturedView}" /> has been
>>>> deprecated, use <action
execute="#{redirect.returnToCapturedView}"
>>>> /> instead
>>>> 16:11:03,622 INFO [Initialization] reading properties from:
>>>> /seam.properties
>>>> 16:11:03,623 INFO [Initialization] reading properties from:
>>>> /jndi.properties
>>>> 16:11:03,626 INFO [Initialization] initializing Seam
>>>> 16:11:03,666 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.jms.topicConnection
>>>> 16:11:03,671 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.core.locale
>>>> 16:11:03,675 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.persistence.persistenceProvider
>>>> 16:11:03,680 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.core.manager
>>>> 16:11:03,680 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.core.expressions
>>>> 16:11:03,682 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.web.isUserInRole
>>>> 16:11:03,684 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.transaction.synchronizations
>>>> 16:11:03,686 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.web.parameters
>>>> 16:11:03,689 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.core.locale
>>>> 16:11:03,690 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.web.userPrincipal
>>>> 16:11:03,690 INFO [Initialization] two components with same name,
>>>> higher precedence wins: org.jboss.seam.core.resourceLoader
>>>> 16:11:03,710 INFO [Component] Component: org.jboss.seam.core.init,
>>>> scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
>>>> 16:11:04,182 INFO [Initialization] Installing components...
>>>> 16:11:04,218 INFO [Component] Component: addNewOpenMap, scope:
>>>> EVENT, type: JAVA_BEAN, class:
>>>>
org.jboss.on.embedded.ui.configuration.resource.AddNewOpenMapMemberPropertyToResourceConfigurationUIBean
>>>> 16:11:04,239 INFO [Component] Component: applicationInfoAction,
>>>> scope: APPLICATION, type: JAVA_BEAN, class:
>>>> org.jboss.on.embedded.ui.ApplicationInfoAction
>>>> 16:11:04,246 INFO [Component] Component: bootstrapAction, scope:
>>>> APPLICATION, type: JAVA_BEAN, class:
>>>> org.jboss.on.embedded.BootstrapAction
>>>> 16:11:04,265 INFO [Component] Component: commonActionUtil, scope:
>>>> EVENT, type: JAVA_BEAN, class:
>>>> org.jboss.on.embedded.ui.CommonActionUtil
>>>> 16:11:04,502 INFO [Component] Component: configHelperFactory,
>>>> scope: EVENT, type: JAVA_BEAN, class:
>>>> org.jboss.on.embedded.ui.configuration.resource.ConfigHelperFactory
>>>> 16:11:04,504 INFO [Component] Component: contentDisplayAction,
>>>> scope: SESSION, type: JAVA_BEAN, class:
>>>> org.jboss.on.embedded.ui.SingleResourceContentAction
>>>> // ... trimmed a lot more similar log
>>>> On access:
>>>> 16:11:58,257 INFO [compiler] Added Library from:
>>>>
vfszip:/NotBackedUp/jpai/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.CR1/server/default/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar/META-INF/mojarra_ext.taglib.xml
>>>> 16:11:58,267 INFO [compiler] Added Library from:
>>>>
vfszip:/NotBackedUp/jpai/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.CR1/server/default/deploy/jopr-embedded-jbas5.war/WEB-INF/lib/jboss-seam-ui-2.1.0.SP1.jar/META-INF/s.taglib.xml
>>>> 16:11:58,289 INFO [compiler] Added Library from:
>>>>
vfszip:/NotBackedUp/jpai/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.CR1/server/default/deploy/jopr-embedded-jbas5.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-core.taglib.xml
>>>> 16:11:58,295 INFO [compiler] Added Library from:
>>>>
vfszip:/NotBackedUp/jpai/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.1.0.CR1/server/default/deploy/jopr-embedded-jbas5.war/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar/META-INF/jsf-html.taglib.xml
>>>> // ... trimmed more similar logs
>>>> regards,
>>>> -Jaikiran
>>>> Dimitris Andreadis wrote:
>>>>> In case you haven't noticed:
>>>>>
https://jira.jboss.org/jira/browse/JBAS-6750
>>>>>
>>>>> The embedded Jopr (snapshot) is included in the 5.1.x. build
>>>>> (default & all configs) at
>>>>>
http://localhost:8080/admin-console.
>>>>>
>>>>> And it looks good!!!
>>>>> _______________________________________________
>>>>> jboss-development mailing list
>>>>> jboss-development(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/jboss-development
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/jboss-development
>> --
>> Pete Muir
>>
http://www.seamframework.org
>>
http://in.relation.to/Bloggers/Pete
--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete