@Override
 public void onCreate() {
   super.onCreate();
   L.init(">") // default PRETTYLOGGER or use just init()
       // .setMethodCount(2);            // default 2
       .hideThreadInfo() // default shown
       .setMethodOffset(1); // default 0
   // 在debug下,才显示log
   L.init(">")
       .setLogLevel(BuildConfig.DEBUG ? LogLevel.FULL : LogLevel.NONE); // default LogLevel.FULL
   // 如果是强制显示log,那么无论在什么模式下都显示log
   if (BaseApplication.LOG) {
     L.init(">").setLogLevel(LogLevel.FULL);
   }
 }
  @Override
  protected void setViews() {
    ATest aTest = new ATest(this);
    aTest.setAdapter(null);

    // string
    String str = fromIntent("key");
    L.d(str != null ? str : "hello world");

    // json
    L.json(
        "[{\"CityId\":18,\"CityName\":\"西安\",\"ProvinceId\":27,\"CityOrder\":1},{\"CityId\":53,\"CityName\":\"广州\",\"ProvinceId\":27,\"CityOrder\":1}]'");

    // object
    L.Object(new User("jack", "f"));

    // list
    L.Object(TestUtil.getLongStringList(this));

    // array
    L.Object(TestUtil.getShortStringArr());

    // arrays
    double[][] doubles = {
      {1.2, 1.6, 1.7, 30, 33},
      {1.2, 1.6, 1.7, 30, 33},
      {1.2, 1.6, 1.7, 30, 33},
      {1.2, 1.6, 1.7, 30, 33}
    };
    L.Object(doubles);

    // sub class
    new User("name", "sex").log();

    Log.d(TAG, "类名 = " + getClassName());
    Log.d(TAG, "当前方法名+行数 = " + callMethodAndLine());
  }
 private void show() {
   L.d("user");
 }