Hi,
I added a wire-tap channel, this work fine with one channel.
Adding a second channel, i have problems to separate logs specific to one channel.
All logs are redirected to a global file , but i would like to have log file for each channels.
Following my log4j.properties:# Root logger option
log4j.rootLogger=warn, logFileError
log4j.appender.logFileError=org.apache.log4j.RollingFileAppender
log4j.appender.logFileError.File=c:/tmp/logs/logFileError.log
log4j.appender.logFileError.MaxFileSize=2MB
log4j.appender.logFileError.MaxBackupIndex=10
log4j.appender.logFileError.layout=org.apache.log4j.PatternLayout
log4j.appender.logFileError.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %M%n
# Redirect log messages from the first channel to a log file
log4j.category.catLogChannel1=warn, logFileChannel1
log4j.appender.logFileChannel1=org.apache.log4j.RollingFileAppender
log4j.appender.logFileChannel1.File=c:/tmp/logs/logChannel1.log
log4j.appender.logFileChannel1.MaxFileSize=2MB
log4j.appender.logFileChannel1.MaxBackupIndex=10
log4j.appender.logFileChannel1.layout=org.apache.log4j.PatternLayout
log4j.appender.logFileChannel1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %M%n
# Redirect log messages from the second channel to a log file
log4j.category.catLogChannel2=warn, logFileChannel2
log4j.appender.logFileChannel2=org.apache.log4j.RollingFileAppender
log4j.appender.logFileChannel2.File=c:/tmp/logs/logChannel2.log
log4j.appender.logFileChannel2.MaxFileSize=2MB
log4j.appender.logFileChannel2.MaxBackupIndex=10
log4j.appender.logFileChannel2.layout=org.apache.log4j.PatternLayout
log4j.appender.logFileChannel2.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %M%n
Files are created , but only the
logFileError.log is filled. Files dedicated for channels are empty.
Following the channel adapter configuration :
<int:logging-channel-adapter id="logChanne1" level="error" log-full-message="false" logger-name="catLogChannel1" />
<int:logging-channel-adapter id="logChanne2" level="error" log-full-message="false" logger-name="catLogChannel2" />
Thanks for your help,
Regards
Eric