Stay organized with collections
Save and categorize content based on your preferences.
publicinterfaceLogService
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.
Static Fields
DEFAULT_ITEMS_PER_FETCH
publicstaticfinalintDEFAULT_ITEMS_PER_FETCH
The number of items that each underlying RPC call will retrieve by default.
A LogQuery object that contains the various query parameters
that should be used in the LogReadRequest. If versions and majorVersionIds
are both empty, fetch will retrieve logs for the current running version.
[[["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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eLogService\u003c/code\u003e allows users to retrieve application logs using specified filters.\u003c/p\u003e\n"],["\u003cp\u003eLogs are returned as an \u003ccode\u003eIterable\u003c/code\u003e of \u003ccode\u003eRequestLogs\u003c/code\u003e, which can include \u003ccode\u003eAppLogLine\u003c/code\u003e objects for application-specific logs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDEFAULT_ITEMS_PER_FETCH\u003c/code\u003e defines the number of log items retrieved per RPC call by default.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efetch(LogQuery query)\u003c/code\u003e method retrieves logs based on the provided \u003ccode\u003eLogQuery\u003c/code\u003e parameters, and acts synchronously.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efetch\u003c/code\u003e method will get logs for the currently running version if the \u003ccode\u003eversions\u003c/code\u003e and \u003ccode\u003emajorVersionIds\u003c/code\u003e fields are empty.\u003c/p\u003e\n"]]],[],null,["# Interface LogService (2.0.0)\n\n public interface LogService\n\n`LogService` allows callers to request the logs for an application\nusing supplied filters. Logs are returned in an `Iterable` that yields\n[RequestLogs](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.RequestLogs), which contain request-level information and optionally\n[AppLogLine](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.log.AppLogLine) objects containing the application logs from the request.\n\nStatic Fields\n-------------\n\n### DEFAULT_ITEMS_PER_FETCH\n\n public static final int DEFAULT_ITEMS_PER_FETCH\n\nThe number of items that each underlying RPC call will retrieve by default.\n\nMethods\n-------\n\n### fetch(LogQuery query)\n\n public abstract Iterable\u003cRequestLogs\u003e fetch(LogQuery query)\n\nRetrieve logs for the current application with the constraints provided\nby the user as parameters to this function. Acts synchronously."]]