gpt4 book ai didi

java - %u 和 %g 有什么区别?

转载 作者:行者123 更新时间:2023-11-30 04:57:21 26 4
gpt4 key购买 nike

Java Logging API 中的 %u 和 %g(日志文件模式变量)有何区别以及何时使用它们?

谢谢

最佳答案

模式由一个字符串组成,该字符串包含以下将在运行时替换的特殊组件:

"/" the local pathname separator
"%t" the system temporary directory
"%h" the value of the "user.home" system property
"%g" the generation number to distinguish rotated logs
"%u" a unique number to resolve conflicts
"%%" translates to a single percent sign "%"

关于java - %u 和 %g 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8110156/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com