[jboss-jira] [JBoss JIRA] (WFLY-2524) logging-profile works for a servlet, but doesn't for a JSP

Osamu Nagano (JIRA) jira-events at lists.jboss.org
Sun Nov 17 20:53:06 EST 2013


Osamu Nagano created WFLY-2524:
----------------------------------

             Summary: logging-profile works for a servlet, but doesn't for a JSP
                 Key: WFLY-2524
                 URL: https://issues.jboss.org/browse/WFLY-2524
             Project: WildFly
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Logging
    Affects Versions: 8.0.0.Beta1
            Reporter: Osamu Nagano
            Assignee: James Perkins


Suppose the following logging-profile has been set in logging subsystem, and a web app has a proper entry in its MANIFEST.MF ({{Logging-Profile: logone}}).  Then all messages via "com.example.logone" logger should go into a file, logone.log.  It does so with a logger got in a servlet, but it doesn't work a logger got in a JSP.

{code}
            <logging-profiles>
                <logging-profile name="logone">
                    <file-handler name="logone">
                        <level name="INFO"/>
                        <file relative-to="jboss.server.log.dir" path="logone.log"/>
                    </file-handler>
                    <logger category="com.example.logone">
                        <level name="INFO"/>
                    </logger>
                    <root-logger>
                        <level name="INFO"/>
                        <handlers>
                            <handler name="logone"/>
                        </handlers>
                    </root-logger>
                </logging-profile>
            </logging-profiles>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list