Disable Debug Log Programmatically

@Wyck was right, ( well sorta 😛 ) you can set error logs but

1) You need to enable debugging

2) ini_set('log_errors', 1); or 0 for false

3) You need to set a log location via ini_set('error_log, $location)

Once you have that set you can then if need be test if said file exists via $location and turn off log_errors by setting its value to 0.

Leave a Comment