Android Open Source - ILog Utility






From Project

Back to project page ILog.

License

The source code is released under:

GNU General Public License

If you think the Android project ILog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.moshx.ilog.utils;
/*w w w .ja  va2 s  . c  o m*/
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Utility {

  private static final SimpleDateFormat FILE_DATE_FORMATTER = new SimpleDateFormat(
      "yyyy_MM_dd__HH_mm_ss_SSS", Locale.US);

  protected static final SimpleDateFormat TIME_FORMATTER = new SimpleDateFormat(
      "yyyy-MM-dd HH:mm:ss", Locale.US);

  public static String getFormattedDate() {
    return TIME_FORMATTER.format(new Date());
  }

  public static String getFormattedFileDate() {
    return FILE_DATE_FORMATTER.format(new Date());
  }

}




Java Source Code List

com.moshx.ilog.ILog.java
com.moshx.ilog.Settings.java
com.moshx.ilog.console.AndroidConsole.java
com.moshx.ilog.console.ConsoleFactory.java
com.moshx.ilog.console.ILogConsole.java
com.moshx.ilog.console.JVMConsole.java
com.moshx.ilog.filelogger.FileLogger.java
com.moshx.ilog.filelogger.HtmlFileLogger.java
com.moshx.ilog.filelogger.TextFileLogger.java
com.moshx.ilog.utils.Utility.java
com.moshx.ilogsample.MainActivity.java
com.moshx.jvmsample.LoggingTest.java