Understanding SSO logger configuration - SSO
John Jellema
Analytics
Logback has been chosen as the logging framework because it supports all the functionality that had been implemented in the SSO proprietary logging system.
Logback configuration files have been organized in the following way:
Each web application has its class path the defined context name for the application in a
logback.xml
file. This file also includes the actual logger configuration for the application.Common logger configurations, used by all web applications found in the
include-logback.xml
file. This file contains all the definitions required by SSO logback configuration.
If you have a SSO cluster installation and make changes into these files you need to configure both nodes in the same way.
Main logback.xml
files
The logback.xml
files reside in the default installation location for each web application, (<webapp>
is the name of the web application like uas
, logviewer
, sso-api
etc.):
Linux:
/usr/local/ubisecure/ubilogin-sso/ubilogin/webapps/<webapp>/WEB-INF/classes
from where it is copied to/usr/local/ubisecure/ubilogin-sso/tomcat/webapps/<webapp>/WEB-INF/classes
during the installation processWindows:
C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\webapps\<webapp>\WEB-INF\classes
from where it is copied toC:\Program Files\Ubisecure\ubilogin-sso\tomcat\webapps\<webapp>\WEB-INF\classes
during the installation process
There is no need for the customers to modify either of these configuration files, but below are examples with explanations.
SSO authentication server (uas
)
Linux installation /usr/local/ubisecure/ubilogin-sso/ubilogin/webapps/uas/WEB-INF/classes/logback.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true" scan="false" scanPeriod="30 seconds">
<property name="LOG_CONTEXT" scope="context" value="uas" />
<include file="/usr/local/ubisecure/ubilogin-sso/ubilogin/custom/logging/include-logback.xml"/>
</configuration>
Windows installation C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\webapps\uas\WEB-INF\classes\logback.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true" scan="false" scanPeriod="30 seconds">
<property name="LOG_CONTEXT" scope="context" value="uas" />
<include file="C:\Program Files\Ubisecure\ubilogin-sso\ubilogin/custom/logging/include-logback.xml"/>
</configuration>
Notes:
The attribute
debug="true"
in theconfiguration
element facilitates troubleshooting for the logging configurationWhen set to
true
, logback will print status information to the console as it processes the configurationIn Windows installations, see the note about Troubleshooting the log configuration at the end of this page
All other web applications except
uas
has this setting asfalse
in order not to repeat the status information many times
The attribute
scan="false"
in theconfiguration
element disables scanning of changes in the logger configuration files (logback.xml
andinclude-logback.xml
)If set to
true
, logback will reload the logging configurations found in both filesThe interval to scan for any file changes is defined by the
scanPeriod
settingAll web applications have this set to
false
by default
The
LOG_CONTEXT
property is individual for each web application and is the same as the folder name of that application
Shared include-logback.xml
file
The include-logback.xml
file resides in the following location in the default installation. This file in intended to permit customisation:
Linux:
/usr/local/ubisecure/ubilogin-sso/ubilogin/custom/logging
Windows:
C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\custom\logging
Linux installation: /usr/local/ubisecure/ubilogin-sso/ubilogin/custom/logging/include-logback.xml
Windows installation: C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\custom\logging\include-logback.xml
Each section of this file is explained below.
<!-- (1) Default levels for Diagnostic logs entry types -->
<turboFilter class="com.ubisecure.common.logging.MarkerBasedLogFilter">
<DefaultLevels>audit=info;tech=info;diag.*=info</DefaultLevels>
</turboFilter>
SSO diagnostic log levels especially for the
uas
application can be set by entry types, see Diag log descriptionDefaultLevels
element specifies the default levels for each entry typeWithout this definition the default level is
off
Default level can be overridden here or the level in use can be set via the management UI
Audit log is enabled by default
In order to enable Statistics log,
DefaultLevels
element values need to be modified
<!-- (2) Limit the amount of rotated files to be preserved.
Uncomment property and set the appropriate value if you desire this feature -->
<!-- <property name="LOG_FILE_MAX_HISTORY" value="10" /> -->
<!-- <property name="AUDIT_LOG_FILE_MAX_HISTORY" value="400" /> -->
<!-- <property name="PASSWORD_AUDIT_LOG_FILE_MAX_HISTORY" value="400" /> -->
By default, log files are rotated on a daily basis and the old files are never deleted
By removing comment signs from these properties and specifying the amount of days you need to preserve, you can make logback to delete the old files automatically
Property
LOG_FILE_MAX_HISTORY
applies to SSO diagnostics log (sso_diag.<YYYY-MM-DD>.log
)Property
AUDIT_LOG_FILE_MAX_HISTORY
applies touas
and SSO management (ubilogin
) audit logs and statistics log (uas3_audit.<YYYY-MM-DD>.log
,uas3_statistics.<YYYY-MM-DD>.log
,management_audit.<YYYY-MM-DD>.log
)Property
PASSWORD_AUDIT_LOG_FILE_MAX_HISTORY
applies topassword
andpassword-reset
audit log (password_audit.<YYYY-MM-DD>.log
)
<!-- (3) SSO log format settings START -->
<conversionRule conversionWord="diagex" converterClass="com.ubisecure.common.logging.LogExceptionConverter" />
<conversionRule conversionWord="diagmarker" converterClass="com.ubisecure.common.logging.MarkerConverter" />
<if condition='property("LOG_CONTEXT").equalsIgnoreCase("sso-api")'>
<then>
<property name="DIAG_LOG_PATTERN" value="%d{'yyyy-MM-dd HH:mm:ss,SSS'} %property{LOG_CONTEXT} %diagmarker %level %X{remote-addr} %X{sub} %msg %diagex%nopex%n" />
</then>
<else>
<property name="DIAG_LOG_PATTERN" value="%d{'yyyy-MM-dd HH:mm:ss,SSS'} %property{LOG_CONTEXT} %diagmarker %level %msg %diagex%nopex%n" />
</else>
</if>
<property name="CONSOLE_LOG_PATTERN" value="${DIAG_LOG_PATTERN}" />
<property name="FILE_LOG_PATTERN" value="${DIAG_LOG_PATTERN}" />
<property name="AUDIT_FILE_LOG_PATTERN" value=""%d{'yyyy-MM-dd HH:mm:ss,SSS'}",%msg%n" />
<property name="MANAGEMENT_AUDIT_LOG_PATTERN" value="%d{'yyyy-MM-dd HH:mm:ss,SSS'} %msg %diagex%nopex%n" />
<property name="PASSWORD_AUDIT_LOG_PATTERN" value="%msg %diagex%nopex%n" />
<!-- (3) SSO log format settings END -->
Log format is specified for each logback appender with pattern properties
The format for file appenders are compatible with e.g. Logviewer
Diagnostic log pattern is the same for all web applications except
sso-api
has even more fields in it, the fields are:date-timestamp
web application name e.g.
uas
,ubilogin
,sso-api
etc.either the entry type (
init
,tech
,method
etc.) or fully qualified class name (e.g.com.ubisecure.saml2.metadata.URLMetadataLocator
)log level
sso-api
only: remote IP address of the callersso-api
only: authenticated user calling the APIlog message
exception message
the full stack trace is printed only in case of debug level set to the entry type or fully qualified class name of this log event
full stack trace is printed always in case of a third party library logging an exception
Audit log patterns are compatible with previous releases
We don’t recommend you to modify these settings except
CONSOLE_LOG_PATTERN
can be altered if desired
<!-- (4) SSO log folder and base file name -->
<property name="LOG_FOLDER" value="/usr/local/ubisecure/ubilogin-sso/ubilogin/logs" />
<property name="SSO_LOG_FILE_PREFIX" value="${LOG_FOLDER}/sso" />
<property name="UAS_LOG_FILE_PREFIX" value="${LOG_FOLDER}/uas3" />
Windows installation:
<property name="LOG_FOLDER" value="C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin/logs" />
These settings define the log folder which is set during the installation process (platform specific) and the log file base names
<!-- (5) SSO installation log appenders START -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
...
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
...
<!-- <file>${SSO_LOG_FILE_PREFIX}_diag.log</file> -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${SSO_LOG_FILE_PREFIX}_diag.%d{yyyy-MM-dd}.log</fileNamePattern>
<if condition='isDefined("LOG_FILE_MAX_HISTORY")'>
<then>
<maxHistory>${LOG_FILE_MAX_HISTORY}</maxHistory>
</then>
</if>
</rollingPolicy>
</appender>
...
<!-- (5) SSO installation log appenders END -->
The noteworthy thing with file appenders is that a time based rolling policy on daily basis has been defined like in the previous releases
Because the
file
element on top of therollingPolicy
element is commented out, also the current day's file has the date in its name (e.g.sso_diag.2022-11-25.log
)In linux systems it is possible to remove the comment signs from the
file
element and have the current day’s file without date in its name (e.g.sso_diag.log
)Only the files with the date in their names are visible in the Logviewer application
The
maxHistory
element is defined only if the respective property is set in the beginning of this configuration fileLogback system works in such away that the arrival of the first event after midnight will trigger a rollover, and if
maxHistory
has been specified the old files are deleted at that timeIf no events are written to a particular log file rollover happens in restart when the appender is being started. In this case the old files are not deleted if you don’t add this definition to your logback configuration:
<cleanHistoryOnStart>true</cleanHistoryOnStart>
Example when password applications are not in use:<property name="PASSWORD_AUDIT_LOG_FILE_MAX_HISTORY" value="1" /> ... <appender name="PASSWORD_AUDIT_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> ... <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${LOG_FOLDER}/password_audit.%d{yyyy-MM-dd}.log</fileNamePattern> <cleanHistoryOnStart>true</cleanHistoryOnStart> <if condition='isDefined("PASSWORD_AUDIT_LOG_FILE_MAX_HISTORY")'> <then> <maxHistory>${PASSWORD_AUDIT_LOG_FILE_MAX_HISTORY}</maxHistory> </then> </if> </rollingPolicy> </appender>
<!-- (6) SSO management audit log. -->
<!-- Set the level to INFO if you desire to have SSO Management audit file log -->
<logger name="com.ubisecure.ubilogin.management" level="OFF">
<appender-ref ref="MANAGEMENT_AUDIT_FILE" />
</logger>
In order to activate Management audit log, the level attribute here must be set to
INFO
If you are not interested in this feature, you may delete the whole section, as even if you have no events for them, these definitions will create empty files each day when the system is restarted
<!-- (7) SSO SatuHetu log appender if needed START -->
...
<!-- (7) SSO SatuHetu log appender if needed END -->
This section in relevant only if you utilise the SatuHetu utility.
<!-- (8) Syslog appenders if needed START -->
...
<!-- (8) Syslog appenders if needed END -->
This section is used by Ubisecure’s Identity Cloud service and is not relevant for customer installations.
<!-- (9) Configure appenders for logging with default INFO level -->
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="AUDIT_FILE" />
<appender-ref ref="STATISTICS_FILE" />
<appender-ref ref="PASSWORD_AUDIT_FILE" />
</root>
...
In this section the default level
INFO
is specified for each appenderThis means that the default logging level for all Java classes, implemented by Ubisecure or third parties, is
INFO
If you don’t utilise console logging, you may remove
CONSOLE
appender from this listIf you don’t utilise file appenders, you may remove them from this list. Note: if you have no events for the file appenders they will still create empty files each day when the system is restarted
You should keep at least
FILE
andAUDIT_FILE
appenders here
<!-- (10) Customise log levels -->
<!-- Some examples -->
<logger name="com.ubisecure.saml2.metadata.URLMetadataLocator" level="INFO" />
In this section you can override the default level
INFO
for any Java package or classYou can set a higher level in order to reduce logging
You can set a lower level when troubleshooting
Troubleshooting the log configuration
Windows installation example (the paths differ in the linux installation)
05:01:09,309 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
05:01:09,309 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/C:/Program%20Files/Ubisecure/ubilogin-sso/tomcat/webapps/uas/WEB-INF/classes/logback.xml]
05:01:09,371 |-INFO in ch.qos.logback.core.joran.util.ConfigurationWatchListUtil@1df5c1f3 - Adding [file:/C:/Program%20Files/Ubisecure/ubilogin-sso/ubilogin/custom/logging/include-logback.xml] to configuration watch list.
05:01:09,403 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word diagex with class [com.ubisecure.common.logging.LogExceptionConverter]
05:01:09,403 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word diagmarker with class [com.ubisecure.common.logging.MarkerConverter]
05:01:09,403 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
05:01:09,403 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
05:01:09,403 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,434 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
05:01:09,449 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
05:01:09,449 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,637 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2143236581 - No compression will be used
05:01:09,637 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2143236581 - Will use the pattern C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/sso_diag.%d{yyyy-MM-dd}.log for the active file
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/sso_diag.%d{yyyy-MM-dd}.log'.
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Oct 03 05:01:09 UTC 2022
05:01:09,637 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/sso_diag.2022-10-03.log
05:01:09,637 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [null]
05:01:09,637 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
05:01:09,637 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [AUDIT_FILE]
05:01:09,637 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,637 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1273758108 - No compression will be used
05:01:09,637 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1273758108 - Will use the pattern C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_audit.%d{yyyy-MM-dd}.log for the active file
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_audit.%d{yyyy-MM-dd}.log'.
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
05:01:09,637 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Oct 03 05:01:09 UTC 2022
05:01:09,637 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[AUDIT_FILE] - Active log file name: C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_audit.2022-10-03.log
05:01:09,637 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[AUDIT_FILE] - File property is set to [null]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STATISTICS_FILE]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,653 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@855663126 - No compression will be used
05:01:09,653 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@855663126 - Will use the pattern C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_statistics.%d{yyyy-MM-dd}.log for the active file
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_statistics.%d{yyyy-MM-dd}.log'.
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Oct 03 05:01:09 UTC 2022
05:01:09,653 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[STATISTICS_FILE] - Active log file name: C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/uas3_statistics.2022-10-03.log
05:01:09,653 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[STATISTICS_FILE] - File property is set to [null]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [MANAGEMENT_AUDIT_FILE]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,653 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@942307416 - No compression will be used
05:01:09,653 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@942307416 - Will use the pattern C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/management_audit.%d{yyyy-MM-dd}.log for the active file
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/management_audit.%d{yyyy-MM-dd}.log'.
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
05:01:09,653 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Oct 03 05:01:09 UTC 2022
05:01:09,653 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MANAGEMENT_AUDIT_FILE] - Active log file name: C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/management_audit.2022-10-03.log
05:01:09,653 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MANAGEMENT_AUDIT_FILE] - File property is set to [null]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [PASSWORD_AUDIT_FILE]
05:01:09,653 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
05:01:09,668 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1956080095 - No compression will be used
05:01:09,668 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1956080095 - Will use the pattern C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/password_audit.%d{yyyy-MM-dd}.log for the active file
05:01:09,668 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/password_audit.%d{yyyy-MM-dd}.log'.
05:01:09,668 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
05:01:09,668 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon Oct 03 05:01:09 UTC 2022
05:01:09,668 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PASSWORD_AUDIT_FILE] - Active log file name: C:/Program Files/Ubisecure/ubilogin-sso/ubilogin/logs/password_audit.2022-10-03.log
05:01:09,668 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[PASSWORD_AUDIT_FILE] - File property is set to [null]
05:01:09,668 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.ubisecure.ubilogin.management] to INFO
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [MANAGEMENT_AUDIT_FILE] to Logger[com.ubisecure.ubilogin.management]
05:01:09,668 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [AUDIT_FILE] to Logger[ROOT]
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STATISTICS_FILE] to Logger[ROOT]
05:01:09,668 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [PASSWORD_AUDIT_FILE] to Logger[ROOT]
05:01:09,668 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.ubisecure.saml2.metadata.URLMetadataLocator] to INFO
05:01:09,668 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.ubisecure.util.filter] to DEBUG
05:01:09,668 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
05:01:09,684 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6373088 - Registering current configuration as safe fallback point
05:01:09,293 |-INFO in ch.qos.logback.classic.servlet.LogbackServletContainerInitializer@2ac5a474 - Due to deployment instructions will NOT register an instance of class ch.qos.logback.classic.servlet.LogbackServletContextListener to the current web-app
2022-10-03 05:01:09,700 uas init INFO Ubilogin Authentication Server 9.1.0 starting
NOTE about SSO Tomcat console log (including System.out and System.err)
In linux environments console log is visible e.g. in /var/log/messages
.
In Windows environments console log is disabled by default. In order to verify events in console log you need to do the following:
Edit the
C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\config\tomcat\install-service.cmd
scriptReplace the logger parameters for the service
--StdOutput nul --StdError nul
=>--StdOutput auto --StdError auto
(line 16)"%prunsrv.exe%" "//US/%TOMCAT_INSTANCENAME%" --LogPath "%CATALINA_HOME%\logs" --StdOutput auto --StdError auto
Update and restart SSO service by executing
C:\Program Files\Ubisecure\ubilogin-sso\ubilogin\config\tomcat\update.cmd
scriptThese logs files will be created in Tomcat logs folder
C:\Program Files\Ubisecure\ubilogin-sso\tomcat\logs
ubiloginserver-stdout.YYYY-MM-DD.log
ubiloginserver-stderr.YYYY-MM-DD.log
Links: