Welcome Guest, Not a member yet? Register   Sign In
idea for log threshold improvement
#1

[eluser]taber[/eluser]
I think some sort of new log threshold level that acts like it's between 1 and 2 would be nice... A log threshold value of "2" prints out a TON of CI debug data, which, don't get me wrong, is pretty useful... but it crowds my own custom log messages.

To get around this I'm using
Code:
log_message('error', 'my debug message')
which feels wrong since my debug messages aren't really errors.

So I was thinking maybe it would be a nice addition to lay out the logging thresholds like so:

Code:
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Custom User Debug Messages, eg: log_message('debug', 'hello world')
| 3 = CI System Debug Messages, eg: "Router Class Initialized"
| 4 = Informational Messages
| 5 = All Messages

Another option might be to move the "Router Class Initialized" and related CI DEBUG messages into the "Informational Messages" level, leaving the threshold of "2" solely for our own custom debug messages.

Anyway just throwin that out there!
#2

[eluser]bhogsett[/eluser]
i like this suggestion. I also am using Error for log messages that are not really errors.




Theme © iAndrew 2016 - Forum software by © MyBB