Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
LogService (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
-
public interface LogService
LogService
allows callers to request the logs for an application
using supplied filters. Logs are returned in an
Iterable
that yields
RequestLogs
, which contain request-level information and optionally
AppLogLine
objects containing the application logs from the request.
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
static int |
DEFAULT_ITEMS_PER_FETCH
The number of items that each underlying RPC call will retrieve by default.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eLogService\u003c/code\u003e provides a way to request application logs using specified filters.\u003c/p\u003e\n"],["\u003cp\u003eLogs are returned in an \u003ccode\u003eIterable\u003c/code\u003e of \u003ccode\u003eRequestLogs\u003c/code\u003e, containing request-level information and application logs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDEFAULT_ITEMS_PER_FETCH\u003c/code\u003e field determines the number of items retrieved per RPC call.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efetch\u003c/code\u003e method retrieves logs based on parameters set in a provided \u003ccode\u003eLogQuery\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# LogService (Google App Engine API for Java)\n\ncom.google.appengine.api.log\n\nInterface LogService\n--------------------\n\n-\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public interface LogService\n ``` \n`LogService` allows callers to request the logs for an application using supplied filters. Logs are returned in an `Iterable` that yields [`RequestLogs`](../../../../../com/google/appengine/api/log/RequestLogs.html \"class in com.google.appengine.api.log\"), which contain request-level information and optionally [`AppLogLine`](../../../../../com/google/appengine/api/log/AppLogLine.html \"class in com.google.appengine.api.log\") objects containing the application logs from the request. \n-\n -\n\n ### Nested Class Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Field Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Summary\n\n-\n -\n\n ### Field Detail\n\n\n -\n\n #### DEFAULT_ITEMS_PER_FETCH\n\n ```\n static final int DEFAULT_ITEMS_PER_FETCH\n ``` \n The number of items that each underlying RPC call will retrieve by default.\n\n See Also:\n : [Constant Field Values](../../../../../constant-values.html#com.google.appengine.api.log.LogService.DEFAULT_ITEMS_PER_FETCH)\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Detail\n\n\n -\n\n #### fetch\n\n ```\n java.lang.Iterable\u003cRequestLogs\u003e fetch(LogQuery query)\n ``` \n Retrieve logs for the current application with the constraints provided by the user as parameters to this function. Acts synchronously.\n\n Parameters:\n : `query` - A LogQuery object that contains the various query parameters\n that should be used in the LogReadRequest. If versions and majorVersionIds\n are both empty, fetch will retrieve logs for the current running version.\n\n Returns:\n : An Iterable that contains a set of logs matching the\n requested filters."]]