#!/usr/bin/env python

"""Write to daily rotating log files.
One message is written per minute so the rotation can be seen.
"""
import time
import logging
from themelog import init_log
logger = logging.getLogger()
init_log(rotating_logfile='test.log')
pause = 60
while True:
	logger.info('Sleeping for {pause} seconds'.format(pause=pause))
	time.sleep(pause)

c935adf971866495d076675b3f8ccc51a94a43bc
<mask token>

<mask token>
init_log(rotating_logfile='test.log')
<mask token>
while True:
    logger.info('Sleeping for {pause} seconds'.format(pause=pause))
    time.sleep(pause)

<mask token>
logger = logging.getLogger()
init_log(rotating_logfile='test.log')
pause = 60
while True:
    logger.info('Sleeping for {pause} seconds'.format(pause=pause))
    time.sleep(pause)

<mask token>
import time
import logging
from themelog import init_log
logger = logging.getLogger()
init_log(rotating_logfile='test.log')
pause = 60
while True:
    logger.info('Sleeping for {pause} seconds'.format(pause=pause))
    time.sleep(pause)

#!/usr/bin/env python

"""Write to daily rotating log files.
One message is written per minute so the rotation can be seen.
"""
import time
import logging
from themelog import init_log
logger = logging.getLogger()
init_log(rotating_logfile='test.log')
pause = 60
while True:
	logger.info('Sleeping for {pause} seconds'.format(pause=pause))
	time.sleep(pause)
