CAS audit logs also appended to Tomcat catalina.out?

55 views
Skip to first unread message

Baron Fujimoto

unread,
Sep 4, 2024, 11:02:36 PM9/4/24
to CAS Community
Since we upgraded to CAS 7, our CAS audit logs are also being appended to our Tomcat catalina.out log file. I'm not sure how this is being enabled, but I'd like to disable it since it's redundant. AFAIK, these are the entries in in CAS log4j2.xml config file potentially(?) relevant to the audit logs:

        <CasAppender name="casFile">
            <AppenderRef ref="logfile" />
        </CasAppender>
        <CasAppender name="casAudit">
            <AppenderRef ref="auditlogfile" />
        </CasAppender>
        <CasAppender name="casConsole">
            <AppenderRef ref="console" />
        </CasAppender>
    ...
    <Loggers>
        <Logger name="org.apereo.inspektr.audit" additivity="false" level="info">
            <AppenderRef ref="casConsole" />
            <AppenderRef ref="casFile" />
            <AppenderRef ref="casAudit" />
        </Logger>
    </Loggers>

Can anyone provide some guidance or point me to the appropriate documentation?
--
Baron Fujimoto <ba...@hawaii.edu> ::: UH Information Technology Services
minutas cantorum, minutas balorum, minutas carboratum descendus pantorum

Dustin Luck

unread,
Sep 5, 2024, 10:25:30 PM9/5/24
to CAS Community, Baron Fujimoto
We stopped all CAS logging from going to Tomcat's stdout logs by removing the `Console` element under `Appenders` and all other references in the log4j2 configuration that included `casConsole`.

Ray Bon

unread,
Sep 5, 2024, 10:25:34 PM9/5/24
to cas-...@apereo.org
Baron,

Remove unwanted appenders from the audit stanza.

<Logger name="org.apereo.inspektr.audit" additivity="false" level="info">
<AppenderRef ref="casAudit" />
</Logger>


Ray

On Wed, 2024-09-04 at 16:52 -1000, Baron Fujimoto wrote:
You don't often get email from ba...@hawaii.edu. Learn why this is important
Reply all
Reply to author
Forward
0 new messages