package org.zeroturnaround.liverebel.bamboo;

import com.atlassian.bamboo.build.logger.BuildLogger;
import org.zeroturnaround.liverebel.plugins.PluginLogger;

public class BambooLogger implements PluginLogger {

  private BuildLogger logger;

  public BambooLogger(BuildLogger logger) {
    this.logger = logger;
  }

  @Override
  public void log(String message) {
    logger.addBuildLogEntry(message);
  }

  @Override
  public void error(String error) {
    logger.addErrorLogEntry(error);
  }
}
