我有疑问,也许它在编程中并不重要,但对我来说这很有趣。 我正在编写一个解析器,现在,当他在某个地方的代码中长大时,非常重要的是嵌入了某种警告。我的意思是,我有一个类加载器,如果你没有指定纹理的路径,解析器类将消息发送到控制台,该路径未指定,但其余部分已加载。实际上我想问的是 - 是否有任何分类系统消息系统,我在哪里可以阅读它。
我的意思是资格系统消息,例如:
我会很高兴任何建议,如果从个人经验更好)))是的,我只是学习编程)
答案 0 :(得分:1)
如果您的意思是"如何按严重性级别"对我的日志邮件进行分类,这是standard Java logging library使用的级别的示例:
SEVERE (highest value)
WARNING
INFO
CONFIG
FINE
FINER
FINEST (lowest value)
或者,sl4j
FATAL: designates very severe error events that will presumably lead the application to abort.
ERROR: designates error events that might still allow the application to continue running.
WARN: designates potentially harmful situations.
INFO: designates informational messages that highlight the progress of the application at coarse-grained level.
DEBUG: designates fine-grained informational events that are most useful to debug an application.
TRACE: designates finer-grained informational events than the DEBUG