EllisLab/CodeIgniter — pull request #1682 by dhinus (2012-08-04 11:17:18+00:00)
Title: Logging should obey error_reporting() setting

If the php error level is not included in the current
error_reporting() setting, we should not log it.

Also, the log_threshold check is redundant, it's
already taken care of by the write_log() method.