Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.
Stay organized with collections Save and categorize content based on your preferences.

google.appengine.api.app_logging module

Summary

Logging utilities for use by applications.

Classes defined here:

AppLogsHandler: StreamHandler subclass

Contents

class google.appengine.api.app_logging.AppLogsHandler(level=0)source

Bases: logging.Handler

Logging handler that will direct output to a persistent store of application logs.

This handler will output log statements to logservice.write(). This handler is automatically initialized and attached to the Python common logging library.

emit(record)source

Emit a record.

This implementation is based on the implementation of StreamHandler.emit().

Parameters

record – A Python logging.LogRecord object.