FileHandler

Configure level and format.

import logging
logging.basicConfig(filename='app.log', level=logging.INFO)
logging.info('msg')