package org.lodder.subtools.subsort.lib.control;

import java.util.List;

import org.lodder.subtools.sublibrary.exception.ReleaseControlException;
import org.lodder.subtools.sublibrary.logging.Logger;
import org.lodder.subtools.sublibrary.model.TvRelease;
import org.lodder.subtools.sublibrary.settings.model.MappingTvdbScene;

public class EpisodeFileControl extends VideoFileControl {

  public EpisodeFileControl(TvRelease tvRelease) {
    super(tvRelease);
  }

  public TvRelease process(List<MappingTvdbScene> dict) throws ReleaseControlException {
    Logger.instance.trace("EpisodeFileControl", "process", "");

    TvRelease tvRelease = (TvRelease) release;
    // return episodeFile;
    if (tvRelease.getShow().equals("")) {
      throw new ReleaseControlException("Unable to extract episode details, check file", release);
    } else {
      Logger.instance.debug("Showname: " + tvRelease.getShow());
      Logger.instance.debug("Season: " + tvRelease.getSeason());
      Logger.instance.debug("Episode: " + tvRelease.getEpisodeNumbers());

      return tvRelease;
    }
  }
}

package org.lodder.subtools.subsort.lib.control;

import java.util.List;

import org.lodder.subtools.sublibrary.exception.ReleaseControlException;
import org.lodder.subtools.sublibrary.model.TvRelease;
import org.lodder.subtools.sublibrary.settings.model.MappingTvdbScene;
import org.lodder.subtools.sublibrary.util.http.DropBoxClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class EpisodeFileControl extends VideoFileControl {

  private static final Logger LOGGER = LoggerFactory.getLogger(DropBoxClient.class);

  public EpisodeFileControl(TvRelease tvRelease) {
    super(tvRelease);
  }

  public TvRelease process(List<MappingTvdbScene> dict) throws ReleaseControlException {
    TvRelease tvRelease = (TvRelease) release;
    // return episodeFile;
    if (tvRelease.getShow().equals("")) {
      throw new ReleaseControlException("Unable to extract episode details, check file", release);
    } else {
      LOGGER.debug("process: showname [{}], season [{}], episode [{}]", tvRelease.getShow(),
          tvRelease.getSeason(), tvRelease.getEpisodeNumbers());

      return tvRelease;
    }
  }
}

Convert EpisodeFileControl from old logger to new LOGGER slf4j