[Django]-Can too much logging impact the performance of web application?

2๐Ÿ‘

โœ…

If you are concerned about I/O latency (a valid concern), you could log from the web application to a queue using QueueHandler / QueueListener as described in the docs here. The QueueListener can operate on a separate thread and prevent your request handler threads from getting bogged down in logging I/O. If you are using Python 2.x, then QueueHandler / QueueListener are available in the logutils package on PyPI.

๐Ÿ‘คVinay Sajip

1๐Ÿ‘

You should log all the data that can be usefull for any future analysis. But you should concern about logging overhead if you are logging too much of data in sync. There can be many options for async logging.

๐Ÿ‘คRajesh Kaushik

Leave a comment