Title: Enable log
Last modified: August 30, 2016

---

# Enable log

 *  Resolved [Guti](https://wordpress.org/support/users/gutibitacorascom/)
 * (@gutibitacorascom)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enable-log/)
 * Dear webvitaly,
 * I was looking at the source and found not very complicated to add a logging capability
   on Antispam plugin.
 * Was thinking instead of sending a separate email for each spam comment, to simply
   add the same information over wp-content/plugins/anti-spam/anti-spam.log or similar,
   so you can directly review all the spam captured, instead of one by one, and 
   make sure everything is working fine.
 * What do you think? Do you want I add this capability or prefer to consider it
   on your side?
 * [https://wordpress.org/plugins/anti-spam/](https://wordpress.org/plugins/anti-spam/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enable-log/#post-6650451)
 * It is great idea.
 * Can you share your updated version with log feature if you already made it?
 *  Thread Starter [Guti](https://wordpress.org/support/users/gutibitacorascom/)
 * (@gutibitacorascom)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enable-log/#post-6650454)
 * It’s is not already implemented. Just looked at the source, and find it not to
   difficult to implement it, but was not sure if you would prefer to code it by
   yourself or not.
 *  [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enable-log/#post-6650493)
 * I am a little bit busy right now and I can work on it in a week or so.
 *  Thread Starter [Guti](https://wordpress.org/support/users/gutibitacorascom/)
 * (@gutibitacorascom)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/enable-log/#post-6650507)
 * OK, just added that and setup in my blog in 30 min: [http://www.javiergutierrezchamorro.com/_temp/anti-spam.php.zip](http://www.javiergutierrezchamorro.com/_temp/anti-spam.php.zip)
 * Maybe not elegant, because it is reusing the login for administrator email sendings,
   but working.
 * Let me know if any concerns.
 *  [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650596)
 * I like your solution.
 * The only issue can be with the huge size of the log file.
    I will try to add 
   year to the name of the log file. In this case log files will be smaller in size
   and spam will be sorted by year. I will update the code and test the plugin for
   a few days.
 * I will reply if any updates.
 *  [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650597)
 * I published [Anti-Spam plugin to Github](https://github.com/webvitaly/anti-spam).
 * I made a [commit with log spam to file feature](https://github.com/webvitaly/anti-spam/commit/078e3010e400e633da5117ad1bac2ffcfe2a7af9).
 * I don’t know if we should enable log feature by default or not.
    It depends on
   spammers activity and the size of log files.
 *  Thread Starter [Guti](https://wordpress.org/support/users/gutibitacorascom/)
 * (@gutibitacorascom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650598)
 * Thank you.
 * Do not think enabling it by default would be a good idea. Specially without an
   options panel to easily disable it.
 * Most users will not read documentation, and left it enabled filling its web storage.
   Also, logging only makes sense to me for testing, and making sure it is working
   properly.
 *  [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650609)
 * Hey Guti,
 * I published new Anti-Spam version with logging spam comments to files feature.
   
   It is disabled by default for sake of saving space. Log files can be dozens of
   megabytes in size in a few days. Spammers are working hard these days 🙂
 * Thank you very much for you help and contribution.
 * I published [Anti-Spam plugin to Github](https://github.com/webvitaly/anti-spam)
   and I hope it will simplifies the future contributions to the plugin.
 * Please let me know if you will found any issues after update.
 * All the best.
 * P.S. By the way I added funny video about [Captcha madness to Anti-Spam description page](https://wordpress.org/plugins/anti-spam/).
   
   This video perfectly describes why I decided to create this plugin 😉
 *  [MarkRH](https://wordpress.org/support/users/markrh/)
 * (@markrh)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650610)
 * I enabled the logging to test it out. I added my own logging back in.
 *     ```
       [25-Oct-2015 05:35:36 PM CDT -0500] - 66.150.34.250 - 18500 Anti Spam detected - antspm-q: 4.1 - antspm-e: Not Empty - Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
       [25-Oct-2015 05:18:37 PM CDT -0500] - 5.164.218.223 - 18499 Anti Spam detected - antspm-q: 4.0 - antspm-e: Not Empty - Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
       [25-Oct-2015 05:11:42 PM CDT -0500] - 188.143.232.26 - 18498 Anti Spam detected - antspm-q: 4.0 - antspm-e: Not Empty - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
       ```
   
 * After I see what the log files look like, may write a separate PHP script front-
   end to list/view/delete them. Just have to see what info is in them and if I 
   really do anything with it.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Enable log’ is closed to new replies.

 * ![](https://ps.w.org/anti-spam/assets/icon-256x256.gif?rev=3469595)
 * [Titan Anti-spam & Security – Brute Force Protection, 2FA & Spam Filter](https://wordpress.org/plugins/anti-spam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anti-spam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anti-spam/)
 * [Active Topics](https://wordpress.org/support/plugin/anti-spam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anti-spam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anti-spam/reviews/)

## Tags

 * [file](https://wordpress.org/support/topic-tag/file/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [logging](https://wordpress.org/support/topic-tag/logging/)

 * 9 replies
 * 3 participants
 * Last reply from: [MarkRH](https://wordpress.org/support/users/markrh/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/enable-log/#post-6650610)
 * Status: resolved