Welcome Guest, Not a member yet? Register   Sign In
Logging levels
#5

[eluser]fustaki[/eluser]
I felt the same problem; I really cannot understand why in CI the level INFO is below DEBUG when the well-known log levels are:

FATAL (something horrible happens)
ERROR (something wrong happens)
INFO (something important happens)
DEBUG (development purpose)
TRACE (one more development level)

Anyway I extended Log library into MY_Log in application/libraries just switching INFO and DEBUG levels (you can add more if you wish).
Here's the code:

Code:
class MY_log extends CI_Log {

   //INFO and DEBUG have been switched.
   var $_levels    = array('ERROR' => '1', 'INFO' => '2',  'DEBUG' => '3', 'ALL' => '4');
}


Messages In This Thread
Logging levels - by El Forum - 02-02-2009, 02:16 PM
Logging levels - by El Forum - 02-02-2009, 02:21 PM
Logging levels - by El Forum - 02-02-2009, 02:41 PM
Logging levels - by El Forum - 02-02-2009, 02:48 PM
Logging levels - by El Forum - 02-04-2009, 04:25 AM
Logging levels - by El Forum - 02-04-2009, 05:57 PM
Logging levels - by El Forum - 02-04-2009, 06:45 PM
Logging levels - by El Forum - 04-20-2011, 03:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB