You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2009/09/24 17:28:05 UTC

DO NOT REPLY [Bug 47898] New: DailyRollingFileAppender unable to create backup log on AIX

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: log4j-dev@logging.apache.org
        ReportedBy: clynch89@yahoo.com


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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


DO NOT REPLY [Bug 47898] DailyRollingFileAppender unable to create backup log on AIX

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47898

Curt Arnold <ca...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Curt Arnold <ca...@apache.org> 2009-10-08 21:32:08 PDT ---
There have been many releases since log4j 1.2.4 that may have fixed the
problem, though DailyRollingFileAppender is a recurring problem.  Marking
NEEDINFO until confirmation that the problem occurs in current log4j code.

-- 
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org