public class APILog extends Object
The entries are stored in memory and will be lost during server restarts. Also the site is limited to 250 entries. The newest entry will be the first in the list.
| Modifier and Type | Class and Description |
|---|---|
static class |
APILog.Entry
Represents a log entry.
|
static class |
APILog.Result
Used to describe if a call was successful or why if failed.
|
| Constructor and Description |
|---|
APILog() |
| Modifier and Type | Method and Description |
|---|---|
List<APILog.Entry> |
getEntries(int start,
int count)
Returns a sublist of the stored entries, starting at start returning at most count items.
|
void |
log(String function,
String description,
APILog.Result result,
Watch watch)
Creates a new log entry.
|
public List<APILog.Entry> getEntries(int start, int count)
start - index of the item where to startcount - max number of items returnedpublic void log(String function, String description, APILog.Result result, Watch watch)
function - name or method of the function which was invokeddescription - description of the callresult - outcome of the callwatch - watch representing the duration of the callCopyright © 2016. All rights reserved.