1 // Copyright 2011 Google Inc. All Rights Reserved.
3 package com
.google
.appengine
.api
.log
;
6 * {@code LogService} allows callers to request the logs for an application
7 * using supplied filters. Logs are returned in an {@code Iterable} that yields
8 * {@link RequestLogs}, which contain request-level information and optionally
9 * {@link AppLogLine} objects containing the application logs from the request.
12 public interface LogService
{
14 * The number of items that each underlying RPC call will retrieve by default.
16 int DEFAULT_ITEMS_PER_FETCH
= 20;
27 * Retrieve logs for the current application with the constraints provided
28 * by the user as parameters to this function. Acts synchronously.
30 * @param query A LogQuery object that contains the various query parameters
31 * that should be used in the LogReadRequest.
32 * @return An Iterable that contains a set of logs matching the
35 Iterable
<RequestLogs
> fetch(LogQuery query
);