Creating the Java class

On the changelog-daemon-host, while logged in as escenic:

$ cd /opt/escenic/changelog-daemon-2.3.5-3
$ mkdir src
$ touch src/Agent.java

Open Agent.java in a text editor and insert the following:

public class SystemOutAgent extends com.escenic.changelog.AbstractAgent {
  @Override
  protected void consumeEntry(final java.io.InputStream pInputStream) throws com.escenic.changelog.PermanentException, com.escenic.changelog.TemporaryException {
    try {
      org.apache.commons.io.IOUtils.copy(pInputStream, System.out);
    }
    catch (java.io.IOException e) {
      throw new com.escenic.changelog.TemporaryException("Could not write to System.out. Will retry later");
    }
  }

  @Override
  protected void startService() throws IllegalStateException, IllegalArgumentException, Exception {
  }

  @Override
  protected void stopService() throws IllegalStateException, Exception {
  }
}