A simple logger for Django
It can be used in development stage.
Usage:
Put the code into settings.py.
Then add following to __ init __.py inside every app
.
import logging
LOG = logging.getLogger('app
')
Then add this to every file where you're going to use 'LOG':
from app
import LOG
LOG.debug("BLAHBLAHABLAHAL")
And finally (and for now) add 'logs/access.log' to the roots of every app of your project.
That's it.
0xmtn / djsimplelog Goto Github PK
View Code? Open in Web Editor NEWA simple logger for Django
License: MIT License