Android Open Source - ILog Console Factory






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.console;
/*from  w w w.j  a v  a  2 s  . co  m*/
import java.util.Locale;

import com.moshx.ilog.Settings;

public class ConsoleFactory {

  static boolean isAndroidVM = false;
  static {
    String vendor = System.getProperty("java.vm.vendor");
    isAndroidVM = (vendor.toLowerCase(Locale.US).contains("android"));
  }

  public static ILogConsole getNewLogger(Settings sts) {
    if (isAndroidVM) {
      return new AndroidConsole(sts);
    } else {
      return new JVMConsole(sts);
    }
  }

}




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