RPCURLFilter

Documentation for eth_defi.rpc_url.RPCURLFilter Python class.

class RPCURLFilter

Bases: logging.Filter

Protect handler output, including cached exception text and extra fields.

Initialize a filter.

Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.

Methods summary

__init__([name])

Initialize a filter.

filter(record)

Sanitise a record immediately before formatting.

filter(record)

Sanitise a record immediately before formatting.

This complements record creation for records received from queues and fields added with extra after the record factory has returned.

Parameters

record (logging.LogRecord) – Record about to be emitted.

Returns

Always True.

Return type

bool

__init__(name='')

Initialize a filter.

Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.