Welcome Guest, Not a member yet? Register   Sign In
log_threshold or ENVIRONMENT
#3

(10-08-2017, 05:52 PM)meow Wrote: What is the difference between index.php ENVIRONMENT and $config['log_threshold'] = 2; in config.php?

Why does error_reporting setting exist in two separate places?

The logic checking ENVIRONMENT is used to set PHP error reporting while $config['log_threshold'] is used to determine what amount of detail gets added to the application logs that CI generates.

CI does catch and log many PHP related warnings and errors - but not all of them. In particular, third-party software (i.e. discussion forum) running on a site might be totally unaware of the CI framework.

In short there are two separate but somewhat overlapping systems for reporting info, warnings and errors.
Reply


Messages In This Thread
log_threshold or ENVIRONMENT - by meow - 10-08-2017, 05:52 PM
RE: log_threshold or ENVIRONMENT - by skunkbad - 10-08-2017, 07:50 PM
RE: log_threshold or ENVIRONMENT - by dave friend - 10-09-2017, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB