Title: Exclude certain data for logging
Last modified: June 11, 2023

---

# Exclude certain data for logging

 *  Resolved [Brian – TGL](https://wordpress.org/support/users/w411/)
 * (@w411)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/exclude-certain-data-for-logging/)
 * I have a plugin that runs some automation fairly regularly throughout every day,
   and writes small text files as a result, is there a way to exclude certain hooks
   from being logged?
 * Simple History is logging too many entries:
   [https://app.screencast.com/qVczJ8Qx5BTL8](https://app.screencast.com/qVczJ8Qx5BTL8)
 * The hooks that get used during the text writing are:
 * gettext
   get_post_metadataget_user_metadata

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/exclude-certain-data-for-logging/#post-16811118)
 * Yes, you can exclude logging of things, see for example this example:
 * [https://wordpress.org/support/topic/how-to-exclude-specific-entries/#post-16806102](https://wordpress.org/support/topic/how-to-exclude-specific-entries/#post-16806102)

Viewing 1 replies (of 1 total)

The topic ‘Exclude certain data for logging’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/exclude-certain-data-for-logging/#post-16811118)
 * Status: resolved