开发者

Symfony disable logging does not work

For my frontend_dev controller I want to disable logging. I did it like this:

dev:
  .settings:
    error_reporting:        E_ALL
    logging_enabled:        false
    web_debug:              true
    cache:                  false
    no_script_name:         false
    etag:                   false
    timeout:                1800  # Session lifetime in seconds
    charset:                utf-8

But I get an error because symfony still tries to write a log file:

[25-Feb-2011 09:57:27] Unable to open the log file "E:\approot\framework\log/frontend_dev.log" for writing.

It's not开发者_JAVA技巧 because of the slash, when I set the permissions it works.

(And yes, I cleared the cache.)

The funny thing about the problem is, that sf can write into the cache folder but not into the log folder, I didn't touch any folder permission settings, not locally and not live (IIS).

Edit:

I can now disabled logging completely by setting sfNoLogger in the factories.yml. But then the web debug toolbar disappearsref.


Id be willing to bet that below your dev snippet you have

all:
  .settings:
    logging_enabled:        true

move this all block to the top of the file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜