Home | History | Annotate | Download | only in common_lib

Lines Matching refs:def

47 def configure_logging(logging_config, **kwargs):
60 def get_logging_manager(manage_stdout_and_stderr=False, redirect_fds=False):
83 def _current_handlers():
90 def do_not_report_as_logging_caller(func):
101 def _logging_manager_aware_logger__find_caller(unused):
146 def __init__(self, prefix='', level=logging.DEBUG):
156 def write(self, data):
174 def _log_line(self, line):
182 def _flush_buffer(self):
189 def flush(self):
194 def isatty(self):
199 def fileno(self):
213 def __init__(self, stream, level, stream_setter):
226 def _replace_with_logger(self):
231 def _restore_stream(self):
235 def flush(self):
239 def start_logging(self):
244 def stop_logging(self):
249 def on_push_context(self, context):
258 def on_restore_context(self, context):
277 def __init__(self):
295 def manage_stream(self, stream, level, stream_setter):
311 def _sys_stream_setter(self, stream_name):
313 def set_stream(file_object):
318 def manage_stdout(self):
323 def manage_stderr(self):
328 def start_logging(self):
337 def stop_logging(self):
350 def _clear_all_handlers(self):
355 def _get_context(self):
359 def _push_context(self, context):
365 def _flush_all_streams(self):
370 def _add_log_handlers(self, add_handlers_fn):
390 def __init__(self, base_formatter, tag):
398 def _add_tagging_formatter(self, tag):
404 def _do_redirect(self, stream=None, filename=None, level=None,
414 def add_handler(context):
429 def redirect(self, filename):
434 def redirect_to_stream(self, stream):
439 def tee_redirect(self, filename, level=None):
444 def tee_redirect_to_stream(self, stream):
449 def tee_redirect_debug_dir(self, debug_dir, log_name=None, tag=None):
453 def add_handlers(context):
462 def _restore_context(self, context):
480 def _pop_context(self):
486 def undo_redirect(self):
499 def restore(self):
523 def __init__(self, stream, level, stream_setter):
538 def _point_stream_handlers_to_copy(self):
550 def _restore_stream_handlers(self):
557 def _redirect_logging_stream_handlers(self, old_stream, new_stream):
578 def start_logging(self):
583 def stop_logging(self):
588 def _spawn_logging_subprocess(self):
618 def _run_logging_subprocess(self, read_fd):
631 def _context_id(self):
635 def on_push_context(self, context):
646 def on_restore_context(self, context):
671 def start_logging(self):
677 def undo_redirect(self):