package org.thoughtcrime.securesms.logging;

import org.signal.core.util.logging.Log;
import org.whispersystems.libsignal.logging.SignalProtocolLogger;

public class CustomSignalProtocolLogger implements SignalProtocolLogger {
  @Override
  public void log(int priority, String tag, String message) {
    switch (priority) {
      case VERBOSE:
        Log.v(tag, message);
        break;
      case DEBUG:
        Log.d(tag, message);
        break;
      case INFO:
        Log.i(tag, message);
        break;
      case WARN:
        Log.w(tag, message);
        break;
      case ERROR:
      case ASSERT:
        Log.e(tag, message);
        break;
    }
  }
}
