Posts: 23
Threads: 13
Joined: Jan 2015
Reputation:
0
Hey Guys,
I was just wondering. If I use the log_message function in CI 3 does it log the file name and the line number also? Thanks!
Posts: 1,101
Threads: 4
Joined: Nov 2014
Reputation:
95
The log_message function only writes the log level, the date/time, and the message you supply to it. The Exceptions class passes the file name and line number to log_message when logging exceptions, though.
Posts: 23
Threads: 13
Joined: Jan 2015
Reputation:
0
Do you mean PHP exceptions class or does codeigniter has its own exception class?
Posts: 1,101
Threads: 4
Joined: Nov 2014
Reputation:
95
CodeIgniter 3 has its own CI_Exceptions class which is used by the exception handler configured during CI's bootstrap process.
Posts: 23
Threads: 13
Joined: Jan 2015
Reputation:
0
What would be the difference if I use php native exceptions class or codeigniter exceptions class?