Skip to content
Back to top
View this page

# semantic_release.cli.masking_filter module

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

  Bases: `Filter`

  REPLACE_STR = '****'
  add_mask_for(data: str, name: str = 'redacted') → MaskingFilter
  filter(record: LogRecord) → bool

    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