4
我有一个log4j.properties文件的Log4j指外部属性文件中的类路径
log4j.appender.BigBrotherLog=org.apache.log4j.RollingFileAppender
log4j.appender.BigBrotherLog.File=${userprofile.broker.bigbrother.log4j.file.path}
log4j.appender.BigBrotherLog.MaxFileSize=100MB
log4j.appender.BigBrotherLog.MaxBackupIndex=10
log4j.appender.BigBrotherLog.layout=org.apache.log4j.PatternLayout
log4j.appender.BigBrotherLog.layout.ConversionPattern=%d{yy/MM/dd} %d{HH:mm:ss} ALARM CRITICAL SITA ESB (SOAESB) [%-t] (%F:%L) %-5p %-c{1} %x- %m%n
log4j.appender.BigBrotherLog.Threshold=FATAL
在那里我从外部属性通过$ {} userprofile.broker.bigbrother.log4j.file.path文件。但我想将这个外部属性文件放在类路径中。我怎样才能使它工作?谢谢。
我认为这是你在找什么:https://groups.google.com/forum/#!msg/vertx/Nz5ERcyaEoA/MGHBPzvDCQAJ 不采取信贷的解决方案,只需发布一个链接。 – stijena