mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-16 13:18:25 +00:00
![Greyson Parrelli](/assets/img/avatar_default.png)
Exception logging tends to be race-y, so now we block and wait for all logs to be written before continuing with the crash.
39 lines
864 B
Java
39 lines
864 B
Java
package org.thoughtcrime.securesms.logging;
|
|
|
|
public class AndroidLogger extends Log.Logger {
|
|
|
|
@Override
|
|
public void v(String tag, String message, Throwable t) {
|
|
android.util.Log.v(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void d(String tag, String message, Throwable t) {
|
|
android.util.Log.d(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void i(String tag, String message, Throwable t) {
|
|
android.util.Log.i(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void w(String tag, String message, Throwable t) {
|
|
android.util.Log.w(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void e(String tag, String message, Throwable t) {
|
|
android.util.Log.e(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void wtf(String tag, String message, Throwable t) {
|
|
android.util.Log.wtf(tag, message, t);
|
|
}
|
|
|
|
@Override
|
|
public void blockUntilAllWritesFinished() {
|
|
}
|
|
}
|