You need to set your $config['log_threshold'] in file config.php since by default it's 0 (no logs)
- 0 = Disables logging, Error logging TURNED OFF
- 1 = Error Messages (including PHP errors)
- 2 = Debug Messages
- 3 = Informational Messages
- 4 = All Messages
Used the function like so:
log_message('debug','Message you want to log');
0 comments:
Post a Comment