ap_log_perror unable to read loglevel from configuration file?

一笑奈何 提交于 2019-12-08 06:21:11

问题


Loglevel error

I am giving this in the configuration file,httpd.conf file,when i am using the function ap_log_rerror,it is capturing only log messages that are having error or above loglevels,but when i am using the function ap_log_perror function it is showing log messages starting from default loglevel warn,i cannot understand why in the case of ap_log_perror it is not reading the loglevel from configuration ? why i am unable achieve the same with ap_log_perror ?


回答1:


ap_log_perror would not read from the configuration file,i made changes in the code log.c,in order to do so and added a function there that reads the config file loglevel,after reading loglevel from configuration file ,it is assigned to the default_loglevel declared in log.c file and thus, can work.

Cheers!!



来源:https://stackoverflow.com/questions/20779822/ap-log-perror-unable-to-read-loglevel-from-configuration-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!