Example #1
0
 /** 返回以调用者的类命名的Log,是获取Log对象最简单的方法! */
 public static Log get() {
   return adapter.getLogger(Thread.currentThread().getStackTrace()[2].getClassName());
 }
Example #2
0
 /**
  * Get a Log by name
  *
  * @param className the name of Log
  * @return Log
  * @throws NullPointerException when className is null, maybe it will case NPE
  */
 public static Log getLog(String className) {
   return adapter.getLogger(className);
 }