Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added logback.xml config

The management audit log records every add, change and delete action made by all users of the Ubisecure SSO Management application.
Example logs are shown:

...

Management Audit Log is disabled by default.
To enable Management Audit Log please edit the configuration file (logback.xml replacing log4j.properties since SSO 9.1)

Configuring via logback.xml file (SSO >= 9.1)

The logback.xml file is located in ubilogin customization directory (ubilogin-sso/ubilogin/custom/logging/logback.xml) and contains the configuration of all SSO logging. Learn about Logback configuration file syntax.

To enable Management Audit Log please modify level for com.ubisecure.ubilogin.management logger from OFF to INFO:

Code Block
<configuration>
...
    <logger name="com.ubisecure.ubilogin.management" level="INFO">
        <appender-ref ref="MANAGEMENT_AUDIT_FILE"/>
    </logger>
...
</configuration>

The pattern and appender configuration for this logger is configured by default to:

Code Block
<configuration>
...
    <property name="MANAGEMENT_AUDIT_LOG_PATTERN"
            value="%d{'yyyy-MM-dd HH:mm:ss,SSS'} %msg %diagex%nopex%n" />
...
    <appender name="MANAGEMENT_AUDIT_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <encoder class="ch.qos.logback.classic.PatternLayout">
            <pattern>${MANAGEMENT_AUDIT_LOG_PATTERN}</pattern>
        </encoder>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${LOG_FOLDER}/management_audit.%d{yyyy-MM-dd}.log</fileNamePattern>
...
        </rollingPolicy>
    </appender>
...
</configuration>


Configuring via log4j.properties file (SSO <= 9.0)

The log4j.properties file should opened with a text editor:

...