-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Yuriy Flyud edited this page Aug 10, 2016
·
3 revisions
Welcome to the hevelian-identity-server wiki!
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.
- Trace - log information about the current step, input/output parameters, etc.
- Debug - log the steps that require additional actions (e.g. "new tenant admin is specified, removing the old one")
- 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.
- Warn - in case some exception occurs but the execution can continue
- Error - some internal error that should not occur during the normal execution
- Fatal - application should stop because of this error