Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (13 loc) · 1.3 KB

README.md

File metadata and controls

20 lines (13 loc) · 1.3 KB

CDI Interceptors

⚠️ This repository is archived and not active any more ⚠️

⚠️ The author does not use CDI anymore ⚠️

The goal of this project is to provide CDI interceptors that implement cross-cutting concerns. Interceptors should be usable in different projects and scenarios and should not be available elsewhere (with the same features and quality).

The project is still work in progress.

@Logging: A configurable LoggingInterceptor

@Logging enables call based slf4j logging on any CDI bean. For every call a single message is generated with the logger set to the name of the class. The message contains the method name, the parameters, the result object, the call duration and the exception if one got thrown. For parameters and result objects null, primitive types, objects, collections and arrays of any kind are supported. Collections and arrays are transformed recursively. For objects their respective toString method is used. Log level and maximum number of items per single array or collection can be configured.

Maven

Releases can be found in the Maven central repository, for a list of the available versions see here.