You can add logging to a file by attaching a Handler to the LogManager, as shown in Listing 5.
可以通过为LogManager 附加一个Handler将日志记录添加到文件,如清单 5 所示。
The problem with this approach is that the LogManager instance uses the system class loader to instantiate classes from the configuration file.
这种方法的问题是LogManager实例使用了系统类的装载程序从配置文件中对类进行实例化。
The problem with this approach is that the LogManager instance uses the system class loader to instantiate classes from the configuration file.
这种方法的问题是LogManager实例使用了系统类的装载程序从配置文件中对类进行实例化。
应用推荐