Skip to content
Yuriy Flyud edited this page Aug 10, 2016 · 3 revisions

Welcome to the hevelian-identity-server wiki!

Developer notes

Logging (to be reviewed)

To enable logging add the @Log4j2 annotation to the class. Access the log instance using the 'log' variable. Logging should be used in service/web layers. It is not advisable to use logging on entity layer. Log messages should end with the dot.

Log levels

  1. Trace - log information about the current step, input/output parameters, etc.
  2. Debug - log the steps that require additional actions (e.g. "new tenant admin is specified, removing the old one")
  3. Info - log information that is suitable to be shown in the console and that will not overload it. It includes the initialisation information, creation of some major entities, etc.
  4. Warn - in case some exception occurs but the execution can continue
  5. Error - some internal error that should not occur during the normal execution
  6. Fatal - application should stop because of this error
Clone this wiki locally