Django split by date or size does not take effect

setting configuration file is as follows:

LOGGING = {

"version": 1,
"disable_existing_loggers": False,
"formatters": {
    "standard": {
        "format": "%(asctime)s %(levelname)s  %(message)s"
    },
},
"filters": {
},
"handlers": {

    "file_handler": {
        "level": "DEBUG",
        "class": "logging.handlers.RotatingFileHandler",
        -sharp "filename":"test.log",
        "filename": datetime.datetime.now().strftime("%Y-%m-%d") + ".log",
        "formatter": "standard",
        "maxBytes": 10,
    },

    "console":
        {
            "level": "DEBUG",
            "class": "logging.StreamHandler",
            "formatter": "standard",
        }
},

"loggers": {

    "django.request": {
        "handlers": ["file_handler"],
        "level": "DEBUG",
        "propagate": True,
    },

    "django": {
        "handlers": ["file_handler"],
        "level": "DEBUG",
        "propagate": True
    },

    "info_logger": {
        "handlers": ["file_handler"],
        "level": "DEBUG",
        "propagate": True
    },
}

}

ran for one day, the file operation was 100m, and then the file name was not changed to the latest day according to the format.
django 2.0.1

could you tell me what"s wrong?

Apr.09,2021

you can try when to specify the interval, python.org/3/library/logging.handlers.html-sharptimedrotatingfilehandler" rel=" nofollow noreferrer "> timedrotatingfilehandler , similar to:

'handlers': {
    'default': {
        'level': 'INFO',
        'class': 'logging.handlers.TimedRotatingFileHandler',
        'filename': os.path.join(ROOT_DIR, 'django.log'),
        'formatter': 'verbose',
        'when': 'midnight',
        'backupCount': '30',
    },
},
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3aa4d-4d8cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3aa4d-4d8cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?