This XenForo 2.1 addon adds logging functionality using the Monolog library
Features
Log to a file
Send logs via email
Emailed logs are deduplicated and buffered
Configure minimum logging levels for files vs email logging
Add extra visitor data to logs: user_id and username
Add extra web data...