GitHub 简介
Annotation-triggered注解触发 method call方法调用 logging for your debug builds调试版本.
As a programmer, you often add log statements片段、语句 to print method calls, their arguments, their return values, and the time it took to execute.
This is not a question. Every one of you does this. Shouldn‘t it be easier?
Simply add @DebugLog to your methods and you will automatically自动 get all of the things listed above logged for free.
@DebugLogpublic String getName(String first, String last) { ?SystemClock.sleep(15); // Don‘t ever really do this! ?return first + " " + last;}
@DebugLog
public String getName(String first, String last) {
SystemClock.sleep(15); // Don‘t ever really do this!
return first + " " + last;
}