诊断日志记录设置是否会自行关闭? [英] Does the Diagnostic Logging setting turn itself off by design?

查看:78
本文介绍了诊断日志记录设置是否会自行关闭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经多次在azure网站上启用诊断日志记录(错误级别仅针对文件系统或blob),并确认它可以正常工作.当我回来检查第二天时,它已关闭.我似乎找不到任何文件表明这是设计使然.

I have enabled diagnostic logging (Error level only to file system or blob) on my azure website several times and confirmed that it is working. When I come back and check the next day it is switched off. I can't seem to find any documentation that suggest that this is by design.

推荐答案

如果您正在登录文件系统,则它会在12小时后禁用自身.如果您点击帮助提示框,则会看到以下内容:

If you're logging to File System, then it does disable itself after 12 hours. You can see this if you click the help bubble:

原因是由于过多写入(慢速)文件系统而可能影响站点性能.

The reason is that it could affect site performance due to excessive writing to the (slow) file system.

但是,如果您将其设置为Blob,则在执行此操作之前永远不要关闭它.

However, if you set it up for blob, it should never get turned off until you do it.

这篇关于诊断日志记录设置是否会自行关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆