def __remove_internal_loggers(logger_to_update, disableStderrLogger=True):
for handler in list(logger_to_update.handlers):<EOL><INDENT>if hasattr(handler, LOGZERO_INTERNAL_LOGGER_ATTR):<EOL><INDENT>if isinstance(handler, RotatingFileHandler):<EOL><INDENT>logger_to_update.removeHandler(handler)<EOL><DEDENT>elif isinstance(handler, SysLogHandler):<EOL><INDENT>logger_to_update.removeHandler(handler)<EOL><DEDENT>elif isinstance(handler, logging.StreamHandler) and disableStderrLogger:<EOL><INDENT>logger_to_update.removeHandler(handler)<EOL><DEDENT><DEDENT><DEDENT>
Remove the internal loggers (e.g. stderr logger and file logger) from the specific logger
:param logger_to_update: the logger to remove internal loggers from
:param disableStderrLogger: should the default stderr logger be disabled? defaults to True