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.
有人能告诉我如何配置 WSO2 API Manager 以使用每小时日志文件而不是每天吗?
尝试org.apache.log4j.DailyRollingFileAppender在位于repository/conf/log4j.properties. 您需要将相关附加程序的属性配置为:
org.apache.log4j.DailyRollingFileAppender
repository/conf/log4j.properties
log4j.appender.myAppender=org.apache.log4j.DailyRollingFileAppender log4j.appender.myAppender.DatePattern='.'yyyy-MM-dd-HH
这将每小时滚动一次日志文件。