Simple action can do for enable log document add code in wp-config.php located on wordpress home directory.
define( 'WP_DEBUG', true );
define('WP_DEBUG_LOG', true);
If you want shows error on screen then,
define('WP_DEBUG_DISPLAY', true);