semantic_release.cli.masking_filter module

class semantic_release.cli.masking_filter.MaskingFilter(_use_named_masks: bool = False, **patterns: Iterable[str | Pattern[str]])[source]

Bases: Filter

REPLACE_STR = '****'
add_mask_for(data: str, name: str = 'redacted') MaskingFilter[source]
filter(record: LogRecord) bool[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.

mask(msg: str) str[source]