@@ -0,0 +1,1896 @@
+package kr.co.namee.permissiongen_sample;%0A%0Aimport android.content.Context;%0Aimport android.content.pm.PackageInfo;%0Aimport android.content.pm.PackageManager;%0Aimport android.os.Build;%0Aimport android.util.Log;%0Aimport kr.co.namee.permissiongen.BuildConfig;%0A%0A/**%0A * Created by namee on 2014. 11. 13..%0A */%0Apublic class Dlog %7B%0A  public static final String TAG = %22NAMEE%22;%0A  public static final String OS = %22AND%22;%0A%0A  public static void debug(String str) %7B%0A    //if (!BuildConfig.DEBUG) return;%0A    Log.d(TAG, buildLogMsg(str));%0A  %7D%0A%0A  public static void debug(String str, Throwable t) %7B%0A    if (!BuildConfig.DEBUG) return;%0A    Log.d(TAG, buildLogMsg(str), t);%0A  %7D%0A%0A  public static void error(String str) %7B%0A    if (!BuildConfig.DEBUG) return;%0A    Log.e(TAG, buildLogMsg(str));%0A  %7D%0A%0A  public static void error(String str, Throwable t) %7B%0A    if (!BuildConfig.DEBUG) return;%0A    Log.e(TAG, buildLogMsg(str), t);%0A  %7D%0A%0A  /**%0A   * %EC%95%B1 %EB%B2%84%EC%A0%BC%0A   *%0A   * @return version%0A   */%0A  public static int getAppVersion(Context context) %7B%0A    try %7B%0A      PackageInfo packageInfo =%0A          context.getPackageManager().getPackageInfo(context.getPackageName(), 0);%0A      return packageInfo.versionCode;%0A    %7D catch (PackageManager.NameNotFoundException e) %7B%0A      throw new RuntimeException(%22Could not get package name: %22 + e);%0A    %7D%0A  %7D%0A%0A  /**%0A   * %EB%94%94%EB%B0%94%EC%9D%B4%EC%8A%A4 %EA%B3%A0%EC%9C%A0%EA%B0%92%0A   */%0A  public static String getDeviceSerialNumber() %7B%0A    try %7B%0A      return (String) Build.class.getField(%22SERIAL%22).get(null);%0A    %7D catch (Exception ignored) %7B%0A      return null;%0A    %7D%0A  %7D%0A%0A  public static String buildLogMsg(String message) %7B%0A%0A    StackTraceElement ste = Thread.currentThread().getStackTrace()%5B4%5D;%0A%0A    StringBuilder sb = new StringBuilder();%0A%0A    sb.append(%22%5B%22);%0A    sb.append(ste.getFileName().replace(%22.java%22, %22%22));%0A    sb.append(%22::%22);%0A    sb.append(ste.getMethodName());%0A    sb.append(%22%5D%22);%0A    sb.append(message);%0A%0A    return sb.toString();%0A  %7D%0A%7D%0A

add Log file