Java Code Examples for com.orhanobut.logger.Logger#log()
The following examples show how to use
com.orhanobut.logger.Logger#log() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EaserApplication.java From Easer with GNU General Public License v3.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); Logger.addLogAdapter(new AndroidLogAdapter()); if (SettingsUtils.logging(this)) { if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) { Logger.addLogAdapter(new DiskLogAdapter()); } else { PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit() .putBoolean(getString(R.string.key_pref_logging), false) .apply(); } } startService(new Intent(this, ActivityLogService.class)); Logger.log(Logger.ASSERT, null, "======Easer started======", null); }
Example 2
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 5 votes |
public static void logForSecret(String tag, String log, @Nullable Throwable t) { if (BuildConfig.DEBUG) { Logger.log(t == null ? Logger.DEBUG : Logger.ERROR, tag, log, t); }else { Logger.log(t == null ? Logger.INFO : Logger.ERROR, tag, filterPrivate(log), t); } }
Example 3
Source File: LogUtil.java From SoloPi with Apache License 2.0 | 4 votes |
public static void i(String tag, String message, Throwable t) { if (LOG_LEVEL > Logger.INFO) { return; } Logger.log(Logger.INFO, tag, message, t); }
Example 4
Source File: LogUtil.java From SoloPi with Apache License 2.0 | 4 votes |
public static void w(String tag, String message, Throwable t) { if (LOG_LEVEL > Logger.WARN) { return; } Logger.log(Logger.WARN, tag, message, t); }
Example 5
Source File: LogUtil.java From SoloPi with Apache License 2.0 | 4 votes |
public static void d(String tag, String message, Throwable t) { if (LOG_LEVEL > Logger.DEBUG) { return; } Logger.log(Logger.DEBUG, tag, message, t); }
Example 6
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void d(String tag, String log) { Logger.log(Logger.DEBUG, tag, log, null); }
Example 7
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void d(String tag, String log, Throwable e) { Logger.log(Logger.DEBUG, tag, log, e); }
Example 8
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void i(String tag, String log) { Logger.log(Logger.INFO, tag, log, null); }
Example 9
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void w(String tag, String log) { Logger.log(Logger.WARN, tag, log, null); }
Example 10
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void e(String tag, String log){ Logger.log(Logger.ERROR, tag, log, null); }
Example 11
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void e(String tag, String log, @Nullable Throwable throwable){ Logger.log(Logger.ERROR, tag, log, throwable); }
Example 12
Source File: ALog.java From bcm-android with GNU General Public License v3.0 | 4 votes |
public static void e(String tag, @Nullable Throwable throwable){ Logger.log(Logger.ERROR, tag, "", throwable); }