maintenance plugin logging
This commit is contained in:
parent
93a4afd567
commit
e9f8862776
3 changed files with 6 additions and 3 deletions
|
@ -28,6 +28,7 @@ import java.util.Map;
|
|||
import info.nightscout.androidaps.MainApp;
|
||||
import info.nightscout.androidaps.R;
|
||||
import info.nightscout.androidaps.events.EventAppExit;
|
||||
import info.nightscout.androidaps.logging.L;
|
||||
import info.nightscout.androidaps.plugins.ConfigBuilder.ConfigBuilderPlugin;
|
||||
import info.nightscout.utils.OKDialog;
|
||||
import info.nightscout.utils.ToastUtils;
|
||||
|
@ -37,7 +38,7 @@ import info.nightscout.utils.ToastUtils;
|
|||
*/
|
||||
|
||||
public class ImportExportPrefs {
|
||||
private static Logger log = LoggerFactory.getLogger(ImportExportPrefs.class);
|
||||
private static Logger log = LoggerFactory.getLogger(L.CORE);
|
||||
static File path = new File(Environment.getExternalStorageDirectory().toString());
|
||||
static public final File file = new File(path, MainApp.gs(R.string.app_name) + "Preferences");
|
||||
|
||||
|
|
|
@ -4,13 +4,14 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import ch.qos.logback.classic.LoggerContext;
|
||||
import info.nightscout.androidaps.logging.L;
|
||||
|
||||
/**
|
||||
* This class provides serveral methods for log-handling (eg. sending logs as emails).
|
||||
*/
|
||||
public class LoggerUtils {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(LoggerUtils.class);
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(L.CORE);
|
||||
|
||||
public static String SUFFIX = ".log.zip";
|
||||
|
||||
|
|
|
@ -27,12 +27,13 @@ import info.nightscout.androidaps.R;
|
|||
import info.nightscout.androidaps.interfaces.PluginBase;
|
||||
import info.nightscout.androidaps.interfaces.PluginDescription;
|
||||
import info.nightscout.androidaps.interfaces.PluginType;
|
||||
import info.nightscout.androidaps.logging.L;
|
||||
import info.nightscout.androidaps.plugins.NSClientInternal.data.NSSettingsStatus;
|
||||
import info.nightscout.utils.SP;
|
||||
|
||||
public class MaintenancePlugin extends PluginBase {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(MaintenancePlugin.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(L.CORE);
|
||||
|
||||
private final Context ctx;
|
||||
|
||||
|
|
Loading…
Reference in a new issue