使用sfNoLogger时,Symfony Web调试工具栏消失

问题描述:

当我在factory.yml中使用sfNoLogger时,为什么Web调试工具栏消失了:

Why does the web debug tool bar disappear when I use sfNoLogger in the factories.yml:

dev:
  logger:
    class:   sfNoLogger
    param:
      level:   err
      loggers: ~

当我删除这些行时,将显示工具栏.

When I remove these lines the tool bar appears.

因为sf * *记录器不会不记录任何内容.通常用于生产.

Because the sf*No*Logger does not log anything. It's usually used for production.