When I create my logfile, I want the name to contain the datetime.
In Python you can get the current datetime as:
>>> from datetime import da
from time import strftime fh = logging.FileHandler(strftime("mylogfile_%H_%M_%m_%d_%Y.log"))