/*
 * Copyright 2023 Signal Messenger, LLC
 * SPDX-License-Identifier: AGPL-3.0-only
 */

package org.signal.core.util.logging

/**
 * A logger that does nothing.
 */
internal class NoopLogger : Log.Logger() {
  override fun v(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
  override fun d(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
  override fun i(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
  override fun w(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
  override fun e(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
  override fun flush() = Unit
  override fun clear() = Unit
}
