We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Since AndroidAnnotations 2.2
The @Trace annotation allows you to trace the execution of a method by writing log entries.
@Trace
The method must not be private.
Usage examples:
@Trace void doWork() { // ... Do Work ... }
Will generate those log entries:
I/TracedMethodActivity( 302): Entering [void doWork() ] I/TracedMethodActivity( 302): Exiting [void doWork() ], duration in ms: 1002
You can also specify the tag and the level of the log message:
@Trace(tag="CustomTag", level=Log.WARN) void doWork() { // ... Do Work ... }
W/CustomTag( 533): Entering [void doWork() ] W/CustomTag( 533): Exiting [void doWork() ], duration in ms: 1001