For this second set of methods, the logging framework will make a "best effort" to determine which class and method called into the logging framework and will add this information into the LogRecord.
对于第二种类型的方法,日志框架会尽可能确定表明日志信息产生位置的文件名称和方法名称,并将这些信息添加到日志信息中。
Second, there are a set of methods that do not take explicit source class or source method names.
第二种类型的方法不带有表示源文件名和方法名的参数。
There are two tests displayed; the first represents the successful execution of the constructor for our class, and the second is the execution of the actual method call.
这里显示了两个测试:第一个展示了类构造器的成功执行,第二个是真实方法调用的执行。
应用推荐