Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-579

RollingFileAppender - file compression feature

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Appenders
    • None

    Description

      Hi Guys,

      I used log4j in the past, and its RollingFileAppender has the possibility to compress the rolled file. It would be a nice feature in log4net too, because it is much easier to handle the rolled files in compressed format. After a lot of searching I did not find a built-in solution in log4net for compression, I decided to implement it. I wanted to do it using the RollFile method, but I was not able to do it, because the RollFile method is not virtual this time. So the solution was for me: I copied the RollingFileAppender into a custom namespace, made its RollFile virtual, and wrote a subclass which had a customized RollFile method. At least a virtual RollFile method would be useful too.

      Thanks:
      Ferenc

      Attachments

        1. Log4NetAppenderMisc-src.zip
          19 kB
          Ferenc HORVÁTH
        2. Log4NetAppenderMisc-bin.zip
          17 kB
          Ferenc HORVÁTH

        Activity

          People

            Unassigned Unassigned
            ferenc.horvath.miskolc Ferenc HORVÁTH
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: