Title: debug.log
Last modified: May 20, 2017

---

# debug.log

 *  [wpericl](https://wordpress.org/support/users/wpericl/)
 * (@wpericl)
 * [9 years ago](https://wordpress.org/support/topic/debug-log-5/)
 * _[ Moderator note: [moved to Fixing WordPress](https://wordpress.org/support/topic/please-use-how-to-and-troubleshooting-if-you-have-problems-after-installation/).]_
 * wp 4.7.4
    ubunt 16 added this to wp-config.php
 * define(‘WP_DEBUG’, true);
 * if (WP_DEBUG) {
    define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG_DISPLAY’, false);
   @ini_set(‘display_errors’, 0); @ini_set(‘error_reporting’, E_ALL & ~E_NOTICE );
   @error_reporting(E_ALL & ~E_NOTICE); }
 * restarted Apache.
    touch debug.log -rw-rw-r– 1 xxxxxxx xxxxxx 0 May 19 14:56 
   debug.log
 * log file never has any content. Does it flush once a day or something?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years ago](https://wordpress.org/support/topic/debug-log-5/#post-9150211)
 * No, it’s there until you delete it. If you’re getting no content, then either
   there are no PHP errors or any errors you’re experiencing happen before WP loads
   enough of itself to log an error.
 *  Thread Starter [wpericl](https://wordpress.org/support/users/wpericl/)
 * (@wpericl)
 * [9 years ago](https://wordpress.org/support/topic/debug-log-5/#post-9150237)
 * Thanks.
    I’m using this esignature plugin, it’s bombing and sends an error to
   the browser. But not to the log file…
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years ago](https://wordpress.org/support/topic/debug-log-5/#post-9150253)
 * I don’t ever use the INI_SETs and just go with the PHP defaults. That’s about
   all I can suggest. Have you looked at the higher level server error logs?
 *  Thread Starter [wpericl](https://wordpress.org/support/users/wpericl/)
 * (@wpericl)
 * [9 years ago](https://wordpress.org/support/topic/debug-log-5/#post-9150311)
 * Okay, looking at those now, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘debug.log’ is closed to new replies.

## Tags

 * [logging](https://wordpress.org/support/topic-tag/logging/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [wpericl](https://wordpress.org/support/users/wpericl/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/debug-log-5/#post-9150311)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
