meld.util.HostNameContextFilter

class meld.util.HostNameContextFilter(hostid)[source]

Bases: logging.Filter

Filter class that adds hostid information to logging records.

__init__(hostid)[source]

Initialize a HostNameContextFilter

Parameters

hostid (str) – the host id to add to logging output

Methods

__init__(hostid)

Initialize a HostNameContextFilter

filter(record)

Determine if the specified record is to be logged.

filter(record)[source]

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.