credsweeper.logger package
Submodules
credsweeper.logger.logger module
- class credsweeper.logger.logger.Logger[source]
Bases:
objectClass that used to configure logging in CredSweeper.
- LEVELS = {'CRITICAL': 50, 'DEBUG': 10, 'ERROR': 40, 'FATAL': 50, 'INFO': 20, 'SILENCE': 60, 'WARN': 30, 'WARNING': 30}
- SILENCE = 60
- static init_logging(log_level: str, file_path: str | None = None) None[source]
Init logger.
- Init logging with configuration from file ‘credsweeper_path/secret/log.yaml’. For configure log level of
console output used ‘log_level’ args
- Parameters:
log_level – log level for console output
file_path – path of custom log config