Skip to content

Logging and JMX Configurations

NaniiGheorghe edited this page Jan 19, 2019 · 2 revisions

Logging

Logging was added using library Simple Logging Facade for Java (SLF4J)

There logging was spitted in 5 files:

  • acs.log (main file for logging)
  • errOut.log (all errors will be logged in this file)
  • repository-request.log (all request to the repository will be logged in this file)
  • service-request.log (all request to the services will be logged in this file)
  • web-requests.log (all web to the services will be logged in this file)

Files errOut.log, repository-request.log, service-request.log, web-requests.log were configured using AOP (Aspect Oriented Programming) where are logged every times when on a @Service, @Repository, @Controller was accessed a method, also are logged all the input parameters and output parameters.

Also is configured auto-archive every time when the logging file size is greater then 10MB an archive will be created and moved in folder 'arhive'.

JMX

Was created a MXBean for editing logging level when the server runs. The bean is registered in the main method using MBeanServer. As a result using JConsole you can edit the log level in run time

Home Page

Clone this wiki locally