PUM_Admin_Tools::errorlog_display()
Displays the contents of the Error Log tab
Description Description
Source Source
File: classes/Admin/Tools.php
public static function errorlog_display() { ?> <h2>Error Log</h2> <a target="_blank" rel="noreferrer noopener" href="<?php echo esc_url( PUM_Utils_Logging::instance()->get_file_url() ); ?>" download="pum-debug.log" class="button button-primary button-with-icon"><i class="dashicons dashicons-download"></i>Download Error Log</a> <form action="" method="POST"> <input type="hidden" name="pum_action" value="empty_error_log" /> <?php wp_nonce_field( 'pum_popup_empty_log_nonce', 'pum_popup_empty_log_nonce' ); ?> <?php submit_button( 'Empty Error Log', '', 'popmake-empty-log', false ); ?> </form> <div id="log-viewer"> <pre><?php echo esc_html( self::display_error_log() ); ?></pre> </div> <?php }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.12.0 | Introduced. |