A JUnit TestRule that intercepts and prints log messages during tests.
This rule utilizes MockK to mock the static methods of the Log class. It intercepts calls to Log.d and Log.e and prints the log messages to the console.
The rules to intercept and print log messages during tests.