Merge "Don't use /sdcard when creating Exchange logging"

This commit is contained in:
Marc Blank 2010-02-10 15:52:54 -08:00 committed by Android (Google) Code Review
commit 04a60bb826

View File

@ -17,6 +17,7 @@
package com.android.exchange.utility;
import android.content.Context;
import android.os.Environment;
import java.io.FileWriter;
import java.io.IOException;
@ -26,7 +27,8 @@ import java.util.Date;
public class FileLogger {
private static FileLogger LOGGER = null;
private static FileWriter mLogWriter = null;
public static String LOG_FILE_NAME = "/sdcard/emaillog.txt";
public static String LOG_FILE_NAME =
Environment.getExternalStorageDirectory() + "/emaillog.txt";
public synchronized static FileLogger getLogger (Context c) {
LOGGER = new FileLogger();