def build_default_logger(<EOL>logger_name='<STR_LIT>',<EOL>log_level=None,<EOL>log_dir=None,<EOL>console_enabled=True,<EOL>max_log_size=<NUM_LIT:5>*<NUM_LIT>*<NUM_LIT>,<EOL>max_backup_logs=<NUM_LIT:5>):
old_logger_class = logging.getLoggerClass()<EOL>logging.setLoggerClass(DefaultLogger)<EOL>logger = logging.getLogger(logger_name)<EOL>logging.setLoggerClass(old_logger_class)<EOL>if log_level:<EOL><INDENT>logger.setLevel(log_level)<EOL><DEDENT>logger.apply_default_handlers(log_dir, console_enabled, max_log_size, max_backup_logs)<EOL>return logger<EOL>
Generates a logger that outputs messages in the same format as default Flask applications.