1 2 3 4 5 6 7 8
import logging logger = logging.getLogger('app') def home(request): logger.info('Doing some division') 1 / 0