Class CloudLoggingFilter

Python standard logging Filter class to add Cloud Logging information to each LogRecord.

When attached to a LogHandler, each incoming log will be modified to include new Cloud Logging relevant data. This data can be manually overwritten using the extras argument when writing logs.

Inheritance

builtins.object > logging.Filter > CloudLoggingFilter

Methods

filter

filter(record)

Add new Cloud Logging data to each LogRecord as it comes in