プラグインを作成していたのでメモ。
WordPressをインストールしたディレクトリ直下にあるwp-config.php 内の定数「WP_DEBUG」をtrueにします。
define('WP_DEBUG', true); // デバッグモードを有効化
// ログファイルに保存する場合は、以下を書き足します。
if ( WP_DEBUG ) {
    // debug.log ファイルに記録
    define( 'WP_DEBUG_LOG', true );
    // ブラウザ上に表示しない
    define( 'WP_DEBUG_DISPLAY', false );
    // ブラウザ上に表示しない
    @ini_set( 'display_errors',0 );
}
/wp_content/debug.log に記録されます。
以下のような感じで記録されます。
[19-May-2014 05:25:00 UTC] PHP Notice:  load_plugin_textdomain was called with an argument that is <strong>deprecated</strong> since version 2.7 with no alternative available. in /home/programp/www/blog/wp-includes/functions.php on line 3195
