Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



The AppLog Class

This class is a representation of application log data, with each object representing one log line for an application written during the processing of a request.

AppLog is provided by the google.appengine.api.logservice module.

  1. Introduction
  2. Properties

Introduction

One or more Application logs can be written during the handling of an incoming client request. Each log is represented in an AppLog object, which contains a timestamp, the severity level of the log entry, and the message string written by the app.

You don't instantiate this class. Instead, you obtain this information by invoking logservice.fetch() to get the filtered list of RequestLog objects, each of which contains all the log information for that request, including application logs. You then get the list of AppLog objects from each RequestLog object using the app_logs property to return a list of AppLog objects. (This list can be empty, if no app log was written during the request.) By default, application logs are not returned by logservice.fetch() ; you have to invoke it with its include_app_logs parameter set to True .

Instance Properties

time
Returns a float value representing the time that the log entry was made, in seconds since the Unix epoch.
level
Returns an int value representing the level or severity of the log.
message
Returns a string containing the log message written by the application.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.