dongxinyue2817 2018-08-23 12:37
浏览 47

如何减少WordLift日志的数量?

Our web site logs are full with many WordLift's related events.

Specifically we see many lines like these in the error_log file: [21-Aug-2018 16:17:04 UTC] TRACE [Wordlift_File_Cache_Service ] Trying to get cache... [21-Aug-2018 16:17:29 UTC] DEBUG [Wordlift_Entity_Post_Type_Service ] Registering post type entity... [21-Aug-2018 16:17:31 UTC] TRACE [Wordlift_Cached_Post_Converter ] Post 963 relations changed, invalidating cache...

How do I limit WordLift's logging?

  • 写回答

1条回答 默认 最新

  • douhao5280 2018-08-23 12:37
    关注

    It looks that debug is enabled and WordLift is logging trace, debug, info, warn and error messages to the PHP logging facility (which is called error_log, hence the general misunderstanding that they're all errors).

    To filter WordLift logging level, add the following to the wp-config.php file (3 = log warnings and errors, 4 = log only errors):

    define( 'WL_LOG_LEVEL', 3 );

    评论

报告相同问题?

悬赏问题

  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法