Trace 0 Logs that contain the most detailed messages. These messages might contain sensitive application data. These messages are disabled by default and should never be enabled in a production environment.
Debug 1 Logs that are used for interactive investigation during development. These logs should primarily contain information useful for debugging and have no long-term value.
Information 2 Logs that track the general flow of the application. These logs should have long-term value.
Warning 3 Logs that highlight an abnormal or unexpected event in the application flow, but don't otherwise cause the application execution to stop.
Error 4 Logs that highlight when the current flow of execution is stopped because of a failure. These errors should indicate a failure in the current activity, not an application-wide failure.
Critical 5 Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires immediate attention.
None 6 Disables logging for the specified category.
函数文档定义了这些日志级别。 然而,没有关于 7 月水平如何的信息:
FINEST
FINER
FINE
CONFIG
INFO
WARNING
SEVERE
我可以看到
CONFIG
日志在 Application Insights 中获取值 0,因此这建议将 CONFIG 映射到 TRACE(没有意义)。
FINE
尽管设置了,但消息根本不会出现
"logLevel": {
"Function": "Debug"
}
找到了这个,但根据映射
CONFIG
应该映射到DEBUG
(1)而不是TRACE
(0)