Open vmihailenco opened 12 years ago
I think django-logbook should just provide DjangoOrmHandler, but not hardcore pre-configured handlers. Then to configure logging I should create few named loggers as it is done with standard logging:
import logbook from django_logbook import DjangoOrmHandler, DjangoAdminEmailHandler
logger = logbook.get_logger('django.request') logger.add_handler(DjangoOrmHandler()) logger.add_handler(DjangoAdminEmailHandler())
Actually code above is just guess, I am not sure if logbook allow this, but it looks like the right way to integrate Django and logbook.
Default log page in Django admin is not usable, because it has size > 3mb. The reason behind this is that Django displays select with all options for the following foreign key:
I have a lot of logs in DB so displaying the whole list of possible summaries is very expensive in terms of resources.