何时在日志中使用“配置”级别

时间:2019-05-17 11:37:54

标签: java logging

public static void main(String[] arg)
{
     LOGGER.config("");
}

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

1 个答案:

答案 0 :(得分:2)

来自java.util.logging.Level Javadocs:

/**
 * 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之间。