JUL 日志级别如何映射到 Azure Function 日志级别

问题描述 投票:0回答:1
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"
    }
java azure-functions java.util.logging
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.