391392393394395396397
* Get logs for an app. * @param appName App name. See {@link #listApps} for a list of apps that can be used. * @return */ public LogStreamResponse getLogs(String appName) { return connection.execute(new Log(appName), apiKey); }
400401402403404405406
* Get logs for an app by specifying additional parameters. * @param logRequest See {@link LogRequestBuilder} * @return */ public LogStreamResponse getLogs(Log.LogRequestBuilder logRequest) { return connection.execute(new Log(logRequest), apiKey); }
138139140141142143144145146147
@DataProvider public Object[][] logParameters() { final String appName = getApp().getName(); return new Object[][]{ {new Log(appName)}, {new Log(appName, true)}, {Log.logFor(appName).tail(false).num(1).getRequest()} }; }