Log4cxx
  1. Log4cxx
  2. LOGCXX-52

Migrate log4j 1.3 RollingFileAppender

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Appender
    • Labels:
      None

      Description

      Log4j 1.3 contains a reworking of RollingFileAppender. The current log4cxx RFA is based on the previous architecture and has no effective unit tests. This improvement will migrate the Log4j 1.3 RFA and corresponding tests into log4cxx.

        Issue Links

          Activity

          Hide
          Curt Arnold added a comment -

          The previous log4cxx rolling file appenders would be affected by changes in the current working directory. The log4j code does attempt to prevent it, but may not be effected since it is difficult to change the current working directory or relative path resolution might not be affected by changes during the process lifetime.

          Show
          Curt Arnold added a comment - The previous log4cxx rolling file appenders would be affected by changes in the current working directory. The log4j code does attempt to prevent it, but may not be effected since it is difficult to change the current working directory or relative path resolution might not be affected by changes during the process lifetime.
          Hide
          Curt Arnold added a comment -

          Initial commit on 1 June 2005. At current, log4cxx implementation does not support post-rollover compression of log files. The configuators cannot currently distinguish between org.apache.log4j.RollingFileAppender (mapped to log4cxx::RollingFileAppender) and org.apache.log4j.rolling.RollingFileAppender (mapped to log4cxx::rolling::RollingFileAppender) and the current implementation will interpret both as log4cxx::rolling::RollingFileAppender. The implementation will not support RollingPolicyBase::setActiveFileName which is deprecated in current log4j CVS, use FileAppender::setFile instead.

          Show
          Curt Arnold added a comment - Initial commit on 1 June 2005. At current, log4cxx implementation does not support post-rollover compression of log files. The configuators cannot currently distinguish between org.apache.log4j.RollingFileAppender (mapped to log4cxx::RollingFileAppender) and org.apache.log4j.rolling.RollingFileAppender (mapped to log4cxx::rolling::RollingFileAppender) and the current implementation will interpret both as log4cxx::rolling::RollingFileAppender. The implementation will not support RollingPolicyBase::setActiveFileName which is deprecated in current log4j CVS, use FileAppender::setFile instead.
          Hide
          Curt Arnold added a comment -

          Revision 486425 allows property file configuration of log4j 1.2 style RollingFileAppenders (org.apache.log4j.RollingFileAppender) as well as log4j 1.3 style (org.apache.log4j.rolling.RollingFileAppender). Class::forName was modified to initially search using the full class name before eliminating the leading package names. The old RFA registers itself as "org.apache.log4j.RollingFileAppender", the new as just "RollingFileAppender"

          Show
          Curt Arnold added a comment - Revision 486425 allows property file configuration of log4j 1.2 style RollingFileAppenders (org.apache.log4j.RollingFileAppender) as well as log4j 1.3 style (org.apache.log4j.rolling.RollingFileAppender). Class::forName was modified to initially search using the full class name before eliminating the leading package names. The old RFA registers itself as "org.apache.log4j.RollingFileAppender", the new as just "RollingFileAppender"

            People

            • Assignee:
              Curt Arnold
              Reporter:
              Curt Arnold
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development