python - TimedRotatingFileHandler: Log only when detected time to rotate -


i have function makes calls logger every second, however, want log information hour before logfile rotates.

use logging.handlers.timedrotatingfilehandler(filename, when='h', interval=1)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -