SensitiveDataFilter

Logging Filter based on sensitive data.

class DIRAC.Resources.LogFilters.SensitiveDataFilter.SensitiveDataFilter(optionDict=None)

Bases: object

Filter module to replace sensitive data by “*REDACTED*”.

Resources
{
  LogBackends
  {
    <backend>
    {
      Filter = MySensitiveDataFilter
    }
  }
  LogFilters
  {
     MySensitiveDataFilter
     {
       Plugin = SensitiveDataFilter
     }
  }
}

This filter is attached to every logger instances within DIRAC by default.

__init__(optionDict=None)

Nothing to do

filter(record)

Filter records based on the sensitive data it contains.