|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heroku.api.request.log.Log.LogRequestBuilder
public static class Log.LogRequestBuilder
Builder class for specifying log request parameters. Logs can be retrieved by specifying a process,
the number of lines, etc... Once the params are specified, build the Log request with getRequest().
Use this builder to specify which params a Log should use. e.g.
new Log.LogRequestBuilder().app("myApp").ps("web.1").num(50).getRequest()
| Constructor Summary | |
|---|---|
Log.LogRequestBuilder()
|
|
| Method Summary | |
|---|---|
Log.LogRequestBuilder |
app(String app)
Name of the app to get logs for. |
Log |
getRequest()
Finalize the params and get a Log request. |
Log.LogRequestBuilder |
num(int num)
Number of log lines to retrieve. |
Log.LogRequestBuilder |
ps(String processName)
Name of the process to get logs for. |
Log.LogRequestBuilder |
source(String source)
The source of the logs. |
Log.LogRequestBuilder |
tail(boolean tail)
Whether or not to tail the logs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log.LogRequestBuilder()
| Method Detail |
|---|
public Log getRequest()
public Log.LogRequestBuilder app(String app)
app - App name.
public Log.LogRequestBuilder num(int num)
num -
public Log.LogRequestBuilder ps(String processName)
HerokuAPI.listProcesses(java.lang.String), or by
retrieving all logs and inspecting the value inside the brackets (e.g. web.1 from app[web.1]).
processName - Name of the process. e.g. "web.1"
public Log.LogRequestBuilder source(String source)
2012-03-23T18:46:01+00:00 heroku[router] is "heroku".
source -
public Log.LogRequestBuilder tail(boolean tail)
tail -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||