Logging

For logging, the framework with the facade slf4j together with the framework logback will be used, with an appender configured in a console, and configured duplicately with an asynchronous record in the database - it will share the database connection configured for the application.

The logback enables to configure a wide range of appenders: http://logback.qos.ch/manual/appenders.html.

Conventions for logging in the application:

For the future, we are thinking of the subsequent use of logstash + Kibana. I would also like to have a transaction log of the user´s movement through the application, etc.

Logging event and logging event exception

For better control of logs was created agenda over tables logging event and logging event exception. Frontend and backend agenda has only read permission for this tables. In FE agenda you can filtering by almost all attributes in IdmLoggingEvent entity. In FE table is some attributes hidden, in future is possible this attributes unhide, for better filtering.

On FE detail of logging event is possible show detailed detail with some information from IdmLoggingEventException. Detail of error log is shown in a separate table, each row from error is shown as independent row in table. Class from eu.bcvsolution.idm is highlighted with warning class.