Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

The requirement to log method entries and exits specified in the Logging Concept is automatically implemented by the LoggingAspect inside the taskana.common.logging module.

Compile-Time Weaving

To use the automatic logging it is necessary to have the source code of the module to be logged and the LoggingAspect by compiling these two modules. There are two options to compile these modules:

 Use the following maven commands
  1. mvn compile -pl :taskana-common-logging

  2. mvn compile -pl :<your module>

  3. or simply mvn compile if you want to use the LoggingAscept for the entire project

 Apply the following run configuration to your module to automatically compile both modules

If you are changing the LoggingAspect you may need to additionally use the following command

mvn install -pl :taskana-common-logging -DskipTests -Dcheckstyle.skip

Testing

AspectJ is not required for testing in general. However, for running the LoggingAsceptTest you first need to build the project and then run the test with Delegate IDE build/run actions to Maven enabled.

  • No labels