Python distutils.log.FATAL Examples
The following are 30
code examples of distutils.log.FATAL().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
distutils.log
, or try the search function
.
Example #1
Source File: support.py From setuptools with MIT License | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #2
Source File: support.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #3
Source File: support.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #4
Source File: support.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #5
Source File: support.py From CTFCrackTools with GNU General Public License v3.0 | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #6
Source File: support.py From android_universal with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #7
Source File: support.py From android_universal with MIT License | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #8
Source File: support.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #9
Source File: support.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #10
Source File: support.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #11
Source File: support.py From CTFCrackTools-V2 with GNU General Public License v3.0 | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #12
Source File: support.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #13
Source File: support.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #14
Source File: test_manifest.py From setuptools with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (log.DEBUG, log.INFO, log.WARN, log.ERROR, log.FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #15
Source File: test_manifest.py From setuptools with MIT License | 5 votes |
def setup_method(self, method): super(TestFileListTest, self).setup_method(method) self.threshold = log.set_threshold(log.FATAL) self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #16
Source File: support.py From setuptools with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #17
Source File: setup.py From pycoind with MIT License | 5 votes |
def run_test(self, filename): path = os.path.join(self.path, filename) self.announce("Running %s..." % filename, log.INFO) try: execfile(path) except Exception, e: self.announce('Test case failed: %s (%r)' % (filename, e), log.FATAL) raise e
Example #18
Source File: support.py From datafari with Apache License 2.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #19
Source File: support.py From datafari with Apache License 2.0 | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #20
Source File: support.py From ironpython3 with Apache License 2.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #21
Source File: support.py From ironpython3 with Apache License 2.0 | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #22
Source File: support.py From Imogen with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #23
Source File: support.py From Imogen with MIT License | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #24
Source File: support.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) if not isinstance(msg, str): raise TypeError("msg should be str, not '%.200s'" % (type(msg).__name__)) self.logs.append((level, msg, args))
Example #25
Source File: support.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def setUp(self): super().setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #26
Source File: support.py From oss-ftp with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #27
Source File: support.py From oss-ftp with MIT License | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #28
Source File: support.py From Computable with MIT License | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))
Example #29
Source File: support.py From Computable with MIT License | 5 votes |
def setUp(self): super(LoggingSilencer, self).setUp() self.threshold = log.set_threshold(log.FATAL) # catching warnings # when log will be replaced by logging # we won't need such monkey-patch anymore self._old_log = log.Log._log log.Log._log = self._log self.logs = []
Example #30
Source File: support.py From ironpython2 with Apache License 2.0 | 5 votes |
def _log(self, level, msg, args): if level not in (DEBUG, INFO, WARN, ERROR, FATAL): raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args))