[英]Logger.getLogger(“Classname”.class.getName()).log(Level.SEVERE, null, ex);
try{
///
}
catch (InterruptedException ex) {
Logger.getLogger(*"Classname"*.class.getName()).log(Level.SEVERE, null, ex);
I'm beginer and when i saw a project then it have a class use Thread , Try-catch. 我是一个初学者,当我看到一个项目时,它就有一个使用Thread的类,即Try-catch。
Line 5 what's mean? 第5行是什么意思? Please help me.
请帮我。
Line 5 allows you to get an instance of a logger and then log a message with the given Level (severe) containing the exception's (ex) stacktrace. 第5行允许您获取记录器的实例,然后以给定级别(严重)记录消息,该消息包含异常的(ex)堆栈跟踪。 Check javadoc of the used classes for further details.
检查所用类的javadoc以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.