Understanding SSO logger configuration - SSO
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.
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
Troubleshooting the log configuration
Â
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)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:
Â
Â