hugo-logging - 调试日志工具包


Apache
跨平台
Java

软件简介

hugo 是注释驱动的方法,用来在调试的时候调用日志记录。它用于打印函数信息及执行时间的工具,仅在debug模式生效。

示例代码:

@DebugLog
public String getName(String first, String last) {
  SystemClock.sleep(15); // Don't ever really do this!
  return first + " " + last;
}

输出:

V/Example: ⇢ getName(first="Jake", last="Wharton")
V/Example: ⇠ getName [16ms] = "Jake Wharton"