【问题标题】:When to use 'config' level in logging [duplicate]何时在日志记录中使用“配置”级别 [重复]
【发布时间】:2019-05-17 11:37:53
【问题描述】:
public static void main(String[] arg)
{
     LOGGER.config("");
}

我访问了很多网站,但我找不到确切的答案

【问题讨论】:

    标签: java logging


    【解决方案1】:

    来自java.util.logging.LevelJavadocs:

    /**
     * CONFIG is a message level for static configuration messages.
     * <p>
     * CONFIG messages are intended to provide a variety of static
     * configuration information, to assist in debugging problems
     * that may be associated with particular configurations.
     * For example, CONFIG message might include the CPU type,
     * the graphics depth, the GUI look-and-feel, etc.
     * This level is initialized to <CODE>700</CODE>.
     */
    public static final Level CONFIG = new Level("CONFIG", 700, defaultBundle);
    

    就严重程度而言,它介于 INFO 和 FINE 之间。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-27
      • 2016-11-27
      • 1970-01-01
      • 2011-07-26
      • 1970-01-01
      • 2018-05-15
      相关资源
      最近更新 更多