php.ini使用xdebug.log的当前日期设置动态文件夹路径

So my problem is that my xdebug.log file is too big and so I was thinking of splitting it by one file a day. I know how to do that manually, but I'd like to know if it was possible to set a dynamic path to a new xdebug file through php.ini as it is where the path is defined. currently I have this:

php.ini
xdebug.remote_log="D:\Work\Project\www\xdebug.log"

and I'd like to end up with something like this:

php.ini
xdebug.remote_log="D:\Work\Project\www\2017\02\23_xdebug.log"

I do know that there is a possibility to use some variable (I did read the php doc, google after it for severals hours) but I can't really find a clear answer so far about if I can do this, have a workaround or just how to do it!

Thanks in advance!! (if I missed some information to provide just tell me!)

查看全部
doubeng9407
doubeng9407
2017/02/23 14:10
  • filepath
  • logging
  • php
  • dynamic
  • xdebug
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复