The public void publish(LogRecord record) method of the Handler provides the important work.
Handler的publicvoidpublish(LogRecordrecord)方法实现了一些重要操作。
The sources of logging calls cannot be determined reliably, so when a LogRecord is published that claims to be from a particular source class and source method, it may be a fabrication.
首先,日志输出的位置是不可靠的。 某一个LogRecord对象中包含的产生日志信息的类名和方法名称都有可能是虚假的。
The new logging probes provider extension can be enabled and configured to publish a LogRecord for each resource meter reading that exceeds a particular threshold defined per log level per meter.
新的日志探测器提供者扩展可以被激活并配置以发布一个LogRecord,用于读取超过特定阀值(每个计量表的每个日志等级都做定义)的每个资源计量表读数。
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.
对于第二种类型的方法,日志框架会尽可能确定表明日志信息产生位置的文件名称和方法名称,并将这些信息添加到日志信息中。
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.
对于第二种类型的方法,日志框架会尽可能确定表明日志信息产生位置的文件名称和方法名称,并将这些信息添加到日志信息中。
应用推荐