Hi all,
I have a RollingFileAppender defined as follows:
appender("test", RollingFileAppender) {
file = "${logDir}/logFile.log"
encoder(PatternLayoutEncoder) {
pattern = log_pattern_prod
}
rollingPolicy(FixedWindowRollingPolicy) {
fileNamePattern = "${logDir}/logFile%i.log"
minIndex = 1
maxIndex = 3
}
triggeringPolicy(SizeBasedTriggeringPolicy) {
maxFileSize = FileSize.valueOf("10KB")
}
} root(DEBUG, ['test'])
I'm testing it, I get 3 archived files but the size of the files is
not limited to 10KB as you can see in the attachment
Why is this happening? The size of the files shouldn't exceed 10KB,
how rolling is working in this case?
Thanks in advance,
Mhd