-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Some plugins or themes may create log directories (see for example WooCommerce and their wp-content/uploads/wc-logs, as referenced in the original PR from #295).
The benefit to hardcoding the path to a log source is that you can give a very specific name to the search location in the drop-down, but it adds a layer of maintenance in adding or removing relevant entries; What if we instead implemented a solution that, when the search form is generated, checks if there are any *log* or *logs* directories within wp-content or wp-content/uploads?
The benefit to doing so would be to automatically detect log files from various sources, and not needing to maintain them our selves.
The drawback is that instead of WooCommerce Logs, it would need to be both generic, and dynamic. For example adding a new section called "Logs" (which could also include wp-content/debug.txt by default, if it is present), that has a new entry for each log directory discovered with wording like Log directory: $name.