[jboss-jira] [JBoss JIRA] (AS7-4964) log message omitted from log when $ in class name

Kelly Dolan (JIRA) jira-events at lists.jboss.org
Fri Jun 8 08:54:18 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700131#comment-12700131 ] 

Kelly Dolan commented on AS7-4964:
----------------------------------

David, thanks for the information.  It seems like I may need/want to create a custom handler to map to the org.jboss.as.server.deployment logger so that I can just get that one log statement (vs. all that correspond to the package).  Currently in production (w/ JBoss 4), we log only ERROR, some WARN, and only the boot and "JBoss Started" INFO messages.  Our customer service folks rely on the latter very heavily during support calls.  Assuming no errors/warnings occur on start up, they easily know when JBoss and deployed applications are ready to access.  With JBoss 7, the message they'll need to watch for is the "Deployed" message but I must find some way to log only these messages and not other INFO messages from the same package so the INFO message that is important to them is not lost in a sea of other INFO messages.

More information re: the bug,

1) the ill behavior described is based on category="org.jboss.as.server.deployment" (no class name)

2) strangely, if category="org.jboss.as.server" (w/o deployment) the "INFO [org.jboss.as.server.deployment.DeploymentHandlerUtil$1] JBAS018559: Deployed "myapp.ear"" is displayed on the console.
                
> log message omitted from log when $ in class name
> -------------------------------------------------
>
>                 Key: AS7-4964
>                 URL: https://issues.jboss.org/browse/AS7-4964
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 7.1.1.Final
>            Reporter: Kelly Dolan
>            Assignee: James Perkins
>
>         <subsystem xmlns="urn:jboss:domain:logging:1.1">
>             <console-handler name="CONSOLE" autoflush="true">
>                 <level name="INFO"/>
>                 <formatter>
>                     <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%C] %m%n"/>
>                 </formatter>
>                 <target name="System.out"/>
>             </console-handler>
>             <periodic-rotating-file-handler name="SERVER" autoflush="true">
>                 <level name="INFO"/>
>                 <formatter>
>                     <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%C] %m%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="APPLICATION" autoflush="true">
>                 <level name="INFO"/>
>                 <formatter>
>                     <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%C] %m%n"/>
>                 </formatter>
>                 <file relative-to="jboss.server.log.dir" path="application.log"/>
>                 <suffix value=".yyyy-MM-dd"/>
>                 <append value="true"/>
>             </periodic-rotating-file-handler>
>             <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>
>             <logger category="my.company">
>                 <level name="INFO"/>
>                 <handlers>
>                     <handler name="APPLICATION"/>
>                 </handlers>
>             </logger>
>             <logger category="org.jboss.as.server.deployment">
>                 <level name="INFO"/>
>                 <handlers>
>                     <handler name="CONSOLE"/>
>                 </handlers>
>             </logger>
>             <root-logger>
>                 <level name="WARN"/>
>                 <handlers>
>                     <handler name="SERVER"/>
>                 </handlers>
>             </root-logger>
>         </subsystem>
> With this, I expect
> a) all WARN messages to log in server.log
> b) all INFO messages for my.company classes to log in server.log and application.log
> c) all INFO messages for org.jboss.as.server.deployment to log in server.log and on the console
> (a) and (b) appear to work fine.  (c) not so much.
> I see "INFO  [org.jboss.as.server.deployment.AbstractDeploymentUnitService] JBAS015876: Starting deployment of "myapp.ear"" in both server.log and on the console.
> I do NOT see "INFO  [org.jboss.as.server.deployment.DeploymentHandlerUtil$1] JBAS018559: Deployed "myapp.ear"" in either server.log and on the console.
> The only thing I can see that is weird about the one not being included in the log is that the message is logged w/in an inner class.  Ultimately, my goal is to change <logger category="org.jboss.as.server.deployment"> to <logger category="org.jboss.as.server.deployment.DeploymentHandlerUtil$1"> as I only want to log JBoss WARN messages w/ the exception of the "Deployed" message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list