Package com.heroku.api.request.log

Examples of com.heroku.api.request.log.LogStreamResponse.openStream()


public class LogStreamResponseTest {

    @Test
    public void testLogStream() throws IOException {
        LogStreamResponse response = new LogStreamResponse(new URL(Heroku.Config.ENDPOINT.value));
        response.openStream().close();
    }
}
View Full Code Here


    public LogStreamResponse getApplicationLogStream() {
        return this.herokuApi.getLogs(getHerokuAppName());
    }
    public String getApplicationLogs() {
        final LogStreamResponse response = this.herokuApi.getLogs(getHerokuAppName());
        final InputStream inputStream = response.openStream();
        return readString(inputStream, 10 * 1024);
    }

    private String readString(InputStream inputStream, final int size) {
        BufferedReader reader=null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.