If this attribute is set to a callable, the rotate() method delegates to this callable. The parameters passed to the callable are those passed to rotate().
logging.handlers/BaseRotatingHandler.rotator
BaseRotatingHandler.rotator