是否可以在无法访问CF管理员的情况下更改共享服务器上的站点的日志文件位置?
由于
答案 0 :(得分:0)
您可以使用setLogProperty函数使用CF Admin API,debugging.cfc http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basiconfig_37.html
public void setLogProperty ( required propertyName, required propertyValue
)
Sets a specified logging property. To use this method, pass the property in the propertyName attribute and the associated value in the propertyValue attribute.
Output: suppressed
Parameters:
propertyName: any, required, propertyName – Property to set. Valid Properties are:
LogDirectory
MaxFileSize
MaxArchives
LogScheduledTask
LogCorbaCalls
LogRequestTimeLimit
logMailSeverity
logMailSentMessages
propertyValue: any, required, propertyValue – Value for propertyName.
了解详情:http://www.cfexecute.com/admin-api-documentation/debugging-cfc/#ixzz1cYac2yJI