Commit 5c0db3bb44a41cdc40800cbc8fbc7c36a5e65b49

Authored by Christian Herdtweck
1 parent 68a27d05

record_base: create enable_logging

Showing 1 changed file with 12 additions and 0 deletions
oletools/record_base.py
... ... @@ -109,6 +109,18 @@ def enable_olefile_logging():
109 109 olefile.enable_logging()
110 110  
111 111  
  112 +def enable_logging():
  113 + """
  114 + Enable logging for this module (disabled by default).
  115 +
  116 + For use by third-party libraries that import `record_base` as module.
  117 +
  118 + This will set the module-specific logger level to NOTSET, which
  119 + means the main application controls the actual logging level.
  120 + """
  121 + logger.setLevel(log_helper.NOTSET)
  122 +
  123 +
112 124 ###############################################################################
113 125 # Base Classes
114 126 ###############################################################################
... ...