Home  >  Q&A  >  body text

Python open source operation or audit log implementation?

Is there an open source implementation that can record operation logs into the database and reduce the intrusion into the business code? If anyone has such experience, please help and answer. Thank you

The current idea is to build a log table by ourselves, and use decorators to set it up in business operations without invading business code. However, time is tight at the moment, so I want to see if there is anything that has been implemented and learn from it

过去多啦不再A梦过去多啦不再A梦2711 days ago645

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-18 11:00:17

    If your server is deployed with nginx or uwsgi, you can configure the log file. All requests will be in the log file. You can completely analyze the log file for review. Of course, in this case, the user's relevant information will not be recorded. , if you need to review the related operations of logged-in users, it must be embedded into your code

    reply
    0
  • Cancelreply