在 Apache Giraph 中创建日志的使用。

Use of creating Log in Apache Giraph .

我正在阅读简单的最短路径计算class。 这里 : https://apache.googlesource.com/giraph/+/3d4f31343c3686435696e75ce88a75c9bffb024e/giraph-examples/src/main/java/org/apache/giraph/examples/SimpleShortestPathsComputation.java

我无法在此 class 中使用创建日志。即使我评论了所有与日志相关的内容,程序也能正常运行。

日志不影响程序输出,但它们用于使调试和分析程序更容易。有关我们为什么需要日志的完整列表,请阅读: https://softwareengineering.stackexchange.com/questions/37294/logging-why-and-what