Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 java -jar 从命令提示符运行 jar 文件。我在我的 jar 文件类中使用日志语句。你能告诉如何配置将日志文件放置在 log4j.prperties 文件中的位置吗?
注意:我在远程机器上运行 jar 文件
log4j 属性/xml 文件可以通过多种方式进行配置。你可以检查这个 如何正确初始化 log4j?