package fr.epsi.i4.bookmark;

import java.net.URI;
import java.util.Objects;

import org.glassfish.jersey.server.ApplicationHandler;
import org.glassfish.jersey.simple.SimpleContainerFactory;

import fr.epsi.i4.bookmark.web.BookmarkApplication;

public class Main {

	public static void main(String[] args) throws Exception {
		String port = Objects.toString(System.getenv("PORT"), "8080");
	    SimpleContainerFactory.create(new URI("http://localhost:" + port), new ApplicationHandler(new BookmarkApplication()));
	}

}

package fr.epsi.i4.bookmark;

import java.net.URI;
import java.util.Objects;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.glassfish.jersey.server.ApplicationHandler;
import org.glassfish.jersey.simple.SimpleContainerFactory;

import fr.epsi.i4.bookmark.web.BookmarkApplication;

public class Main {

	public static void main(String[] args) throws Exception {
		String port = Objects.toString(System.getenv("PORT"), "8080");
		Logger.getLogger("bookmarks").log(Level.INFO, "Starting web services on port " + port);
	    SimpleContainerFactory.create(new URI("http://rest-bookmarks.herokuapp.com:" + port), new ApplicationHandler(new BookmarkApplication()));
	}

}

add log on startup