[jboss-jira] [JBoss JIRA] (AS7-2317) Web Console: The log4j/log creation tool support multiple files

James Perkins (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 7 12:56:41 EST 2011


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

James Perkins commented on AS7-2317:
------------------------------------

This should be pretty easy to do. All loggers are based on categories. If you just want to log security messages to a separate file you need to create specific loggers and add them to a file handler.

{code:xml}
<subsystem xmlns="urn:jboss:domain:logging:1.1">
    ...
    <file-handler name="securityHandler">
        <<file relative-to="jboss.server.log.dir" path="security.log"/>
    </file-handler>
    <logger category="org.jboss.as.security">
        <level name="INFO" />
        <handlers>
            <handler name="securityHandler" />
        </handlers>
    </logger>
    <logger category="org.jboss.security">
        <level name="INFO" />
        <handlers>
            <handler name="securityHandler" />
        </handlers>
    </logger>
    ...
</subsystem>
{code}

Note though those categories may not be correct and should probably be verified, but the functionality is already present.
                
> Web Console: The log4j/log creation tool support multiple files
> ---------------------------------------------------------------
>
>                 Key: AS7-2317
>                 URL: https://issues.jboss.org/browse/AS7-2317
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Console
>            Reporter: Jim Tyrrell
>              Labels: eap6-ux
>
> Currently the logger is an all encompassing file editor.  Should there be a way to create/edit multiple files, ie a security file that grabs all of the successful/failed logins and the user names that were used in the system so an auditor can see you are looking at this info as an Admin.  Ie someone trying to brute force in.

--
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