Search code examples
androidloggingannotationsaspectjjcabi

How to use jcabi-aspects Loggable annotation in android?


I'm trying to keep track of the entire app flow so I figured using the Loggable annotation on every single method in my code would do the job.

My issue is that I can't seem to understand how to setup form scratch the Loggable option, including(to my limited understanding of it):

  • Importing all dependencies with gradle
  • Configuring the log4j properties , from inside the code or from a file
  • Using a PackageInfo class to log all methods in my project

Solution

  • A while ago I played around with Gradle and Android SDK in connection with AspectJ in order to help another user. Maybe you want to check this answer.

    P.S.: Your question is very general, so my answer is too. This is StackOverflow, please show some code and/or configuration. Give the community a concrete problem to solve and make your own problem reproducible, ideally via an SSCCE.