|
| THREADSAFE = True |
|
| THREADSAFE = False |
|
Python stub for Log Service service.
def google.appengine.api.logservice.logservice_stub.LogServiceStub.__init__ |
( |
|
self, |
|
|
|
persist = False , |
|
|
|
logs_path = None , |
|
|
|
request_data = None |
|
) |
| |
Initializer.
Args:
persist: For backwards compatability. Has no effect.
logs_path: A str containing the filename to use for logs storage. Defaults
to in-memory if unset.
request_data: A apiproxy_stub.RequestData instance used to look up state
associated with the request that generated an API call.
def google.appengine.api.logservice.logservice_stub.LogServiceStub.end_request |
( |
|
self, |
|
|
|
request_id, |
|
|
|
status, |
|
|
|
response_size, |
|
|
|
end_time = None |
|
) |
| |
Ends logging for a request.
Args:
request_id: A unique string identifying the request associated with the
API call.
status: An int containing the HTTP status code for this request.
response_size: An int containing the content length of the response.
end_time: An int containing the end time in micro-seconds. If unset, the
current time is used.
def google.appengine.api.logservice.logservice_stub.LogServiceStub.start_request |
( |
|
self, |
|
|
|
request_id, |
|
|
|
user_request_id, |
|
|
|
ip, |
|
|
|
app_id, |
|
|
|
version_id, |
|
|
|
nickname, |
|
|
|
user_agent, |
|
|
|
host, |
|
|
|
method, |
|
|
|
resource, |
|
|
|
http_version, |
|
|
|
start_time = None , |
|
|
|
module = None |
|
) |
| |
Starts logging for a request.
Each start_request call must be followed by a corresponding end_request call
to cleanup resources allocated in start_request.
Args:
request_id: A unique string identifying the request associated with the
API call.
user_request_id: A user-visible unique string for retrieving the request
log at a later time.
ip: The user's IP address.
app_id: A string representing the application ID that this request
corresponds to.
version_id: A string representing the version ID that this request
corresponds to.
nickname: A string representing the user that has made this request (that
is, the user's nickname, e.g., 'foobar' for a user logged in as
'foobar@gmail.com').
user_agent: A string representing the agent used to make this request.
host: A string representing the host that received this request.
method: A string containing the HTTP method of this request.
resource: A string containing the path and query string of this request.
http_version: A string containing the HTTP version of this request.
start_time: An int containing the start time in micro-seconds. If unset,
the current time is used.
module: The string name of the module handling this request.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/api/logservice/logservice_stub.py