Welcome Guest, Not a member yet? Register   Sign In
How do 'enviornments' affect error logging?
#11

[eluser]@li[/eluser]
thanks troy for clearing it up, that comment was just a bit confusing. I don't mind if it does affect logging or not as long as it can be easily changed like in the index.php
#12

[eluser]InsiteFX[/eluser]
Ask yourself this was does a log file contain?

It contains Error information that the server or your application has encountered!

InsiteFX
#13

[eluser]@li[/eluser]
Not really, logs also store a lot of debugging messages, e.g class loaded, model loaded, etc.
#14

[eluser]vs.dev[/eluser]
When you define in the environment this also defines which config file will be used:
- default application/config/config.php
- development application/config/development/config.php (if it exists)

Error logging depends on these config variables in config.php
$config['log_threshold']
$config['log_path']
$config['log_date_format']

So for different environments (defined in index.php) you can set different error reporting options (always index.php) and different logging options (which are defined in config.php)
#15

[eluser]InsiteFX[/eluser]
And if you want to go deeper take a look at the system/core/CI_Exception Class.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB