To display internal logger output, add this to you local_settings.py:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
import logging

logger = [ # Add all loggers you want to activate
    "pylucid.decorators",
    "pylucid.middlewares",
    "pylucid.context_processor",
    #~ "pylucid.pylucid_plugins",
    #~ "pylucid.url_debug",
]
#handler = logging.FileHandler('FooBar.log') # log into a file
handler = logging.StreamHandler() # log to console / stdout
handler.setFormatter(logging.Formatter(
"%(levelname)s %(asctime)s %(module)s.%(funcName)s: %(message)s"
))
for log_name in logger:
    log = logging.getLogger(log_name)
    log.setLevel(logging.DEBUG)
    log.handlers = [handler] # settings.py would be import more than one time

To list all existing loggers do this, e.g.:

1
2
~$ cd PyLucid_env/src/pylucid/
~PyLucid_env/src/pylucid$ find . -iname '*.py' | xargs grep "getLogger("

Example Output:

1
2
3
4
./pylucid_project/tests/unittest_plugin/tests.py:#logger = getLogger("pylucid.unittest_plugin")
./pylucid_project/tests/unittest_plugin/views.py:logger = getLogger("pylucid.unittest_plugin")
./pylucid_project/apps/i18n/tests.py:#        logger = getLogger("PyLucidCacheMiddleware")
./pylucid_project/system/pylucid_plugins.py:logger = getLogger("pylucid.pylucid_plugins")