Is there a system setting or other method (outside of a plugin) that will clear the error log after a certain amount of time or certain file size?
I’m sure it would be easy to write a plugin that fires the processor that clears the log on a specific event.
But why, pray tell, would you want to do that?
lo9on.com
MODx Evolution/Revolution | Remote Desktop Training | Development
It’s usually better to figure out where the errors are coming from and fix them.
I have corrected all errors generated from our custom code, though some errors are user generated, such as attempting to create a new resource with the same alias as an existing resource. I just thought that the Modx error log would have similar functionality to a server error log, giving me the option of only keeping XX numbers of days worth of log before replacing those records and clearing the log all together. I could write a plug-in, though that feels like the wrong way to go about it.
-
☆ A M B ☆
- 24,524 Posts
Writing a plugin is exactly the way to go about adding any custom functionality to the MODx core. That’s what plugins are for.