• I am not sure if this would go here but I have a question in editing the wp-config file.
    I want to add a Python script or Ruby script that will compress the error.log file to my own personalization whenever it’s called.

    Is there a way to do that in the wp-config or how could I set that up to make this possible?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That has no place in wp-config.php.

    Why not write your script and call it via cron on your server?

    Thread Starter hozayrayz

    (@hozayrayz)

    That is more reasonable! I never worked with adding cron jobs, so I can take a look at it! Thank you!

    Is there a way to compress the log file using wp-debug or making new files for each date and deleting old ones?
    Perhaps deleting the old ones would cron job?

    • This reply was modified 4 years, 2 months ago by hozayrayz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Script into wp-config File’ is closed to new replies.