WordPress.org

Plugin Reviews

Log Viewer

This plugin provides an easy way to view *.log files directly in the admin panel.

Average Rating
4.7 out of 5 stars
A real time saver!
By , for WP 4.2.3

This should come preinstalled with WordPress! ... (well, not really, only developers would use it anyways hehe).

Works great!
By , for WP 3.9.2

Its worth mentioning that if you want to send info to the debug.log you can use;

error_log( $str );

And if you want to get really fancy, follow the lead from http://www.stumiller.me/sending-output-to-the-wordpress-debug-log/ and call this code from the Debug Bar Console http://wordpress.org/plugins/debug-bar-console/

<?php
if (!function_exists('write_log'))
{
	    function write_log ($log)
            {
		$extra = '';
		if(func_num_args()>1) {
			$args = func_get_args();
			array_shift($args);
			$extra = implode(', ', $args);
		}

	        if ( true === WP_DEBUG ) {
	            if(!empty($extra)) {
	        		// Show extra before output
	        		error_log($extra . ": ");
	            }

	            if ( is_array( $log ) || is_object( $log ) ) {
	                error_log( print_r( $log, true ) );
	            } else {
	                error_log( $log );
	            }
        	}
	    }
}

class MyClass {
	public function whereAreYou ( ) {
		write_log("I am @ ", __FILE__, __LINE__, __NAMESPACE__, __CLASS__, __FUNCTION__, __METHOD__);
	}
}

$obj = new MyClass;
$obj->whereAreYou();
Great plugin
By , for WP 3.9.1

Thank you for making it.

Not working with large files
By , for WP 3.9.1

The plugin does not work with large files.

But it's a nice feature.

Useful plugin
By , for WP 3.8.1

Thanks for this plugin, it works great and is a real time saver!

Works fine
By , for WP 3.6.1

Works as expected.

You must log in to submit a review. You can also log in or register using the form near the top of this page.