Back to project page ILog.
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.
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); } } }