Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Yes, as of EUM 8.1.0 the toggle button was removed as the logging is now always turned on. However, you can still disable logging for EUM using these two hooks/filters:

    pre_update_site_option_MPSUM
    pre_update_option_MPSUM

    but you will need to create a PHP file in your wp-content/mu-plugins directory (e.g. wp-content/mu-plugins/eum-disable-logs.php), and add the following code in it:

    
    <?php
    function eum_disable_logs($value) {
    	if (!is_array($value)) $value = array();
    	if (empty($value['core']) || !is_array($value['core'])) $value['core'] = array();
    	$value['core']['logs'] = 'off';
    	return $value;
    }
    add_filter('pre_update_site_option_MPSUM', 'eum_disable_logs', 10);
    add_filter('pre_update_option_MPSUM', 'eum_disable_logs', 10);
    

    save it and go to EUM’s general settings page, click any setting you have in the Updates settings section, you don’t need to change it, just click the same option. After clicking it, you will have the Update Logs disabled, and if you want to turn it back on, just remove the file from your wp-content/mu-plugins directory.

    Thanks
    Anthon

    Thread Starter kuhnbnubstahl

    (@kuhnbnubstahl)

    Thanks for the guide.
    It is a bit cumbersome, but at least it is possible at all =)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘disable logs’ is closed to new replies.