【问题标题】:Coldfusion cflog not adding any text to log fileColdfusion cflog 未向日志文件添加任何文本
【发布时间】:2020-02-27 01:36:23
【问题描述】:

我什至不得不问这个问题,但在一个半小时后无法打印到简单的日志文件,我感到很荒谬。我要做的就是将“okok”写入日志文件,但我什至无法让它工作。我正在使用 Lucee Coldfusion。这是我的代码:

 <cflog file="logFile" application="no" text="okok" type="information">

文件“logFile”与其他文件位于同一目录中。我到底错过了什么?没有错误,只是没有任何内容添加到日志文件中。

【问题讨论】:

  • same directory as everything else 是什么意思?
  • 我不知道怎么比这更直截了当,所以我拍了一张文件夹的照片给你看。

标签: debugging logging coldfusion lucee


【解决方案1】:

documentation on cflog 有答案。查看文件属性的描述。关键句是,The file must be located in the default log directory.

This link,会帮你找到那个目录。

【讨论】:

  • 谢谢我终于明白了。我认为问题可能出在位置上,但我不知道它应该在哪里。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-04
  • 2016-08-16
  • 1970-01-01
  • 2012-04-08
相关资源
最近更新 更多