Back to project page android-xlog.
The source code is released under:
Apache License
If you think the Android project android-xlog 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.github.curioustechizen.xlog.sample; /*from w ww. j av a 2 s . com*/ import java.io.File; import java.io.IOException; import android.app.Application; import com.github.curioustechizen.xlog.Log; public class XlogSampleApplication extends Application { private static final boolean LOG_TO_FILE = true; private File logFilePath; @Override public void onCreate() { super.onCreate(); logFilePath = new File(getFilesDir(), "XlogAppLog.txt"); try { Log.init(this, LOG_TO_FILE, logFilePath); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } Log.d("XlogSampleApplication", "In onCreate() after Log.init()"); } }