shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SHIRO-391) Enable Principal in Logs using SLF4J MDC
Date Tue, 23 Oct 2012 18:17:14 GMT
Jan created SHIRO-391:
-------------------------

             Summary: Enable Principal in Logs using SLF4J MDC
                 Key: SHIRO-391
                 URL: https://issues.apache.org/jira/browse/SHIRO-391
             Project: Shiro
          Issue Type: Improvement
            Reporter: Jan
            Priority: Minor


Sometimes it is useful to log the user name. That way it can easily be traced which user faced
an exception or where an error occurred.

The Mapped Diagnostic Context (MDC) of SLF4J can be used for that as it uses the same mechanisms
as Shiro already does. That way one can use %{shiroSubject} in the log pattern. This will
then be filled with the principal name or left blank.

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

Mime
View raw message