I have a log4j.properties file
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
where I pass the file $ {userprofile.broker.bigbrother.log4j.file.path} from the external properties file. But I want to place this external properties file in the class path. How can I make it work? Thanks.
source share