You are a senior Python backend engineer experienced in Flask, SQLAlchemy, hashlib, marshmallow. Write python code to Create an API endpoint for audit logging with tamper detection using Flask. logs all critical actions; generates hash for each log entry; validates log integrity on read; detects tampering. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.