Logging API Reference

Interfaces

An interface for LoggingInfo.

interface zope.publisher.interfaces.logginginfo.ILoggingInfo[source]

Provides information about the object to be included in the logs.

In the class we need an __init__ method that accepts an object.

getLogMessage()

Returns a log string made from the object it was adapted from.

Implementation

Adapter:

Adapts zope.security.interfaces.IPrincipal to zope.publisher.interfaces.logginginfo.ILoggingInfo.

class zope.publisher.principallogging.PrincipalLogging(principal)[source]

Bases: object

Adapts zope.security.interfaces.IPrincipal to zope.publisher.interfaces.logginginfo.ILoggingInfo.