RSS Amplifier

dhilst · Apr 3, 2018

Django, logging to console.

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

This is how to setup console logging in django. Setup DEBUG=True at settings.py and also add this LOGGING configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'console': { 'level': 'DEBUG', 'class': 'logging.StreamHandler', }, }, 'loggers': { '': { 'handlers': ['console'], 'level': 'DEBUG', 'propagate': True, }, }, } Tested with Django 2.1

Read on dhilst.github.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.