• Resolved fightsmarttrav

    (@fightsmarttrav)


    Hey Bowo,

    I see that Debug Log Manager rewrites wp config to include a line like this:
    define( ‘WP_DEBUG_LOG’, ‘/var/www/vhosts/howtofightnow.com/httpdocs/wp-content/uploads/debug-log-manager/howtofightnowcom_20250409173339278926_debug.log’ );

    I also notice that under the log manager GUI itself, it lists the same location:
    https://www.dropbox.com/scl/fi/n5ymygvwhsia0q1930q1p/Screenshot-2025-04-09-at-1.36.58-PM-3.png?rlkey=or9asoxf2sb9guev28heofy5d&dl=0

    But if I change the log file in wp config, it does not update the location that exists in the debug log manager gui.

    So, can you please tell me where in the plugin’s code it is storing or setting this value?

    I’m creating a script which reads the debug log and restarts if I get fatal errors, and I’m noticing that if I deactivate and reactvate the plugin, the log file changes in the GUI… despite it remaining the same in wp config.

    It would be useful if I could crawl the config file to update the location of the log file if any changes are made!

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Bowo

    (@qriouslad)

    @fightsmarttrav the debug log file location is stored in an option (wp_option table) with the key ‘debug_log_manager_file_path’, which is ‘refreshed’ when you deactivate and reactive DLM. You can search the codebase for this key if you’d like to take a closer look at which points this is utilized.

    The WP_DEBUG_LOG value in wp-config.php is updated to the value stored in that option when you enable debug logging via the toggle at the top of DLM dashboard.

    I hope that helps you achieve what you’re trying to do.

Viewing 1 replies (of 1 total)

The topic ‘Debug Log Location / Config File’ is closed to new replies.