David Pugh [
https://community.jboss.org/people/thebravedave] created the discussion
"Re: Grails project on Jboss 7 Blocks logging"
To view the discussion, visit:
https://community.jboss.org/message/732542#732542
--------------------------------------------------------------
The Jboss version is 7.1.1.Final.
In deployment folder:
_____________________
User-ear.ear
--------------->api.war
--------------->AreaVault.war
--------------->UserServer-ejb.jar
ServerConfig.war
----------------->*standard grails project makeup*
__________________________
I'm not sure what else you want to know about the deployment structure (just let me
know and I will be happy to add information).
I am doing a pretty standard logging setup in standalone.xml as such:
<subsystem xmlns="urn:jboss:domain:logging:1.1">
<async-handler name="ASYNC_SESSION">
<queue-length value="1024"/>
<subhandlers>
<handler name="sessionFileHandler"/>
</subhandlers>
</async-handler>
<async-handler name="ASYNC_HIBERNATE">
<queue-length value="1024"/>
<subhandlers>
<handler name="hibernateFileHandler"/>
</subhandlers>
</async-handler>
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="hibernateFileHandler">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="hibernate.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="sessionFileHandler">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="session.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="sococo.session">
<level name="INFO"/>
<handlers>
<handler name="ASYNC_SESSION"/>
</handlers>
</logger>
<logger category="org.hibernate">
<level name="WARN"/>
<handlers>
<handler name="ASYNC_HIBERNATE"/>
</handlers>
</logger>
<logger category="org.hibernate.jdbc.ConnectionManager">
<level name="WARN"/>
<handlers>
<handler name="ASYNC_HIBERNATE"/>
</handlers>
</logger>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
</subsystem>
__________________________________________
Once again all the logging works if I don't have ServerConfig.war added in the
deployment folder.
If anyone can help, please do. Also if you need more information, just let me know.
Thank you for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/732542#732542]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]