Php 在codeigniter中调试路由?

Php 在codeigniter中调试路由?,php,debugging,codeigniter,logging,codeigniter-routing,Php,Debugging,Codeigniter,Logging,Codeigniter Routing,我想知道在CodeIgniter中是否有调试路由的简单方法 我希望能够在日志中看到以下内容: Client sent : apps/something Route found : apps/(:any) --> applications/searchbyname/$1 Redirecting : apps/something --> applications/searchbyname/something //and just cause we can lets make the se

我想知道在CodeIgniter中是否有调试路由的简单方法

我希望能够在日志中看到以下内容:

Client sent : apps/something
Route found : apps/(:any) --> applications/searchbyname/$1
Redirecting : apps/something --> applications/searchbyname/something
//and just cause we can lets make the searchbyname function not exist
ERROR - 2012-09-16 22:10:05 --> 404 Page Not Found --> applications/searchbyname/something
基本上,这意味着我们可以看到我们何时到达一条路线以及它试图装载的位置


有什么方法可以实现这些功能吗?

刚刚编写了路由器核心系统类的一个小扩展:


它将按照您描述的方式进行调试。(除了404,我还需要补充)

404应该由CI的日志自动处理。