package com.kinancity.mail.activator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.kinancity.mail.Activation;
import com.kinancity.mail.FileLogger;

/**
 * Fake Activator that just saves as file
 * 
 * @author drallieiv
 *
 */
public class ToFileLinkActivator implements LinkActivator {

	private Logger logger = LoggerFactory.getLogger("LINKS");

	@Override
	public boolean activateLink(Activation link) {
		FileLogger.logStatus(link, FileLogger.SKIPPED);
		logger.info("{};skipped", link);
		return true;
	}

}

@@ -36,66 +36,8 @@
 r;%0A%0A
-import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A
 impo
@@ -252,68 +252,8 @@
  %7B%0A%0A
-%09private Logger logger = LoggerFactory.getLogger(%22LINKS%22);%0A%0A
 %09@Ov
@@ -361,43 +361,8 @@
 D);%0A
-%09%09logger.info(%22%7B%7D;skipped%22, link);%0A
 %09%09re

remove double log in log mode