_log module
- class pyflyby._log.PyflybyLogger(name, level)
- _LEVELS = {'DEBUG': 10, 'ERROR': 40, 'INFO': 20, 'WARNING': 30}
- property debug_enabled
- property info_enabled
- set_level(level)
Set the pyflyby logger’s level to
level
.
- class pyflyby._log._PyflybyHandler(level=0)
- _interactive_prefix = '\x1b[0m\x1b[33m[PYFLYBY]\x1b[0m '
- _logged_anything_during_context = False
- _noninteractive_prefix = '[PYFLYBY] '
- _pre_log_function = None
- emit(record)
Do whatever it takes to actually log the specified logging record.
This version is intended to be implemented by subclasses and so raises a NotImplementedError.
- pyflyby._log._is_interactive(file)
- pyflyby._log._is_ipython()
Returns true if we’re currently running inside IPython.