2017-06-12 50 views

回答

1

所有过时的信息会被记录为INFO级别,PHP的通道,所以如果你尝试这种配置中的所有过时消息,将在一个文件中

monolog: 
    handlers: 
     security: 
      level: INFO 
      type:  stream 
      path:  '%kernel.logs_dir%/deprecated.log' 
      channels: [php] 
+0

就像一个魅力被记录。我会在生产上尝试相同的。 –