https://issues.apache.org/bugzilla/show_bug.cgi?id=47898
Summary: DailyRollingFileAppender unable to create backup log
on AIX
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: AIX
Status: NEW
Severity: major
Priority: P2
Component: Appender
AssignedTo: [email protected]
ReportedBy: [email protected]
I am using the DailyRollingFileAppender in log4j 1.2.4 on aix using the
appender setting example below. The problem is this -- the log file gets
created but is not getting backed up in aix. When the next hour rolls around,
log4j overwrites the existing log file from the previous hour. This same log4j
configuration works on windows OS, the log file gets backed up every hour as
expected.
I tried using RollingFileAppender with a MaxFileSize & MaxBackupIndex setting
configured as another possible option but this did not work on AIX either,
works on windows though.
log4j.appender.A1Group=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1Group.File= ${log4j_dir}GroupCampaignTracking.log
log4j.appender.A1Group.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.A1Group.layout=org.apache.log4j.PatternLayout
log4j.appender.A1Group.layout.ConversionPattern=%d{MMM dd yyyy HH:mm:ss} %-4r
%-5p [%t] (%x) - %m%n
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]