Search in sources :

Example 1 with CustomSignalProtocolLogger

use of org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger in project Signal-Android by WhisperSystems.

the class ApplicationContext method initializeLogging.

private void initializeLogging() {
    persistentLogger = new PersistentLogger(this);
    org.signal.core.util.logging.Log.initialize(FeatureFlags::internalUser, new AndroidLogger(), persistentLogger);
    SignalProtocolLoggerProvider.setProvider(new CustomSignalProtocolLogger());
    SignalExecutors.UNBOUNDED.execute(() -> {
        Log.blockUntilAllWritesFinished();
        LogDatabase.getInstance(this).trimToSize();
    });
}
Also used : PersistentLogger(org.thoughtcrime.securesms.logging.PersistentLogger) AndroidLogger(org.signal.core.util.logging.AndroidLogger) CustomSignalProtocolLogger(org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger) FeatureFlags(org.thoughtcrime.securesms.util.FeatureFlags)

Example 2 with CustomSignalProtocolLogger

use of org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger in project Signal-Android by signalapp.

the class ApplicationContext method initializeLogging.

private void initializeLogging() {
    persistentLogger = new PersistentLogger(this);
    org.signal.core.util.logging.Log.initialize(FeatureFlags::internalUser, new AndroidLogger(), persistentLogger);
    SignalProtocolLoggerProvider.setProvider(new CustomSignalProtocolLogger());
    SignalExecutors.UNBOUNDED.execute(() -> {
        Log.blockUntilAllWritesFinished();
        LogDatabase.getInstance(this).trimToSize();
    });
}
Also used : PersistentLogger(org.thoughtcrime.securesms.logging.PersistentLogger) AndroidLogger(org.signal.core.util.logging.AndroidLogger) CustomSignalProtocolLogger(org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger) FeatureFlags(org.thoughtcrime.securesms.util.FeatureFlags)

Aggregations

AndroidLogger (org.signal.core.util.logging.AndroidLogger)2 CustomSignalProtocolLogger (org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger)2 PersistentLogger (org.thoughtcrime.securesms.logging.PersistentLogger)2 FeatureFlags (org.thoughtcrime.securesms.util.FeatureFlags)2