Skip to content

tarosky/logbook

Repository files navigation

logbook

Build Status

A logging plugin for WordPress. You can see what changed and who changed it.

Download: https://wordpress.org/plugins/logbook/

It is logging:

  • WordPress
    • Core updates
    • Plugin/Theme updates
    • Language updates
  • Post/Page/Attachment
    • Created
    • Updated
    • Deleted
  • Plugin
    • Activated
    • Deactivated
  • Theme
    • Switched
  • User
    • Logged in
  • XML-RPC
    • Authenticated
    • Created
    • Updated
    • Deleted
  • PHP
    • Errors
    • Warnings (WP_DEBUG only)
    • Notices (WP_DEBUG only)

Customizing

Add your custom log events

  1. Create a class that extends the \LogBook\Logger class.
  2. Load the class by \LogBook\init_log() like following.
add_action( 'plugins_loaded', function() {
	require_once dirname( __FILE__ ) . '/path/to/example.php';
	\LogBook\init_log( 'Hello\Example' );
} );

Screenshot

List of logs

Detail screen of the log

Updated post:

Last error of PHP: