def get_logging_manager(manage_stdout_and_stderr=False, redirect_fds=False):
 if redirect_fds:
  manager = FdRedirectionLoggingManager()
 else:
  manager = LoggingManager()
 if manage_stdout_and_stderr:
  manager.manage_stdout()
  manager.manage_stderr()
 return manager

def get_logging_manager ( manage_stdout_and_stderr = False , redirect_fds = False ) : if redirect_fds : manager = FdRedirectionLoggingManager ( ) else : manager = LoggingManager ( ) if manage_stdout_and_stderr : manager . manage_stdout ( ) manager . manage_stderr ( ) return manager
create a loggingmanager thats managing sys .