So there is apparently a difference between having your config
appender being org.apache.log4j.rolling.RollingFileAppender vs.
org.apache.log4j.RollingFileAppender.  The second one(which doesn't
have the extra 'rolling' in its namespace) will only be activated if
you have /exactly/ the following in your config file:
<appender name="ROLL" class="org.apache.log4j.RollingFileAppender">
This loads the obsolete rolling file appender for log4cxx, which
doesn't seem to work properly.  It certainly doesn't work correctly
for the test that I've been trying to do.  As the name would suggest,
it's probably obsolete and we should think about removing it post
0.12.

The quirky thing about this is that because log4cxx doesn't actually
care about the Java class name, the following lines in the config file
are all equivalent:
<appender name="ROLL" class="org.apache.log4j.rolling.RollingFileAppender">
<appender name="ROLL" class="RollingFileAppender">
<appender name="ROLL" class="log4cxx.RollingFileAppender">

-Robert Middleton

On Sat, Apr 17, 2021 at 4:27 AM Thorsten Schöning <tschoen...@am-soft.de> wrote:
>
> Guten Tag Robert Middleton,
> am Samstag, 17. April 2021 um 04:31 schrieben Sie:
>
> > Does anybody happen to have a known good XML file for rollover with
> > compression?  I'm working on LOGCXX-523 and I'm trying to configure
> > the XML file to gzip the files when rolling over, but I can't get it
> > to work.[...]
>
> What did you try so for? RollingFileAppender has an example
> documented, if that doesn't work, that should be changed as well.
>
> https://svn.apache.org/repos/asf/logging/site/trunk/docs/log4cxx/apidocs/classlog4cxx_1_1rolling_1_1_rolling_file_appender.html
>
> Might just have been copied&pasted from log4j in the past:
>
> https://stackoverflow.com/questions/19616641/log4j-configurations-with-daily-rolling-gzip-and-max-backup-files
>
> Mit freundlichen Grüßen
>
> Thorsten Schöning
>
> --
> AM-SoFT IT-Service - Bitstore Hameln GmbH i.G.
> Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK
>
> E-Mail: thorsten.schoen...@am-soft.de
> Web:    http://www.AM-SoFT.de/
>
> Tel:   05151-  9468- 0
> Tel:   05151-  9468-55
> Fax:   05151-  9468-88
> Mobil:  0178-8 9468-04
>
> AM-SoFT IT-Service - Bitstore Hameln GmbH i.G., Brandenburger Str. 7c, 31789 
> Hameln
> AG Hannover HRB neu - Geschäftsführer: Janine Galonska
>
>
> Für Rückfragen stehe ich Ihnen sehr gerne zur Verfügung.
>
> Mit freundlichen Grüßen
>
> Thorsten Schöning
>
>
> Tel: 05151 9468 0
> Fax: 05151 9468 88
> Mobil:
> Webseite: https://www.am-soft.de
>
> AM-Soft IT-Service - Bitstore Hameln GmbH i.G. ist ein Mitglied der Bitstore 
> Gruppe - Ihr Full-Service-Dienstleister für IT und TK
>
> AM-Soft IT-Service - Bitstore Hameln GmbH i.G.
> Brandenburger Str. 7c
> 31789 Hameln
> Tel: 05151 9468 0
>
> Bitstore IT-Consulting GmbH
> Zentrale - Berlin Lichtenberg
> Frankfurter Allee 285
> 10317 Berlin
> Tel: 030 453 087 80
>
> CBS IT-Service - Bitstore Kaulsdorf UG
> Tel: 030 453 087 880 1
>
> Büro Dallgow-Döberitz
> Tel: 03322 507 020
>
> Büro Kloster Lehnin
> Tel: 033207 566 530
>
> PCE IT-Service - Bitstore Darmstadt UG
> Darmstadt
> Tel: 06151 392 973 0
>
> Büro Neuruppin
> Tel: 033932 606 090
>
> ACI EDV Systemhaus - Bitstore Dresden GmbH
> Dresden
> Tel: 0351 254 410
>
> Das Systemhaus - Bitstore Magdeburg GmbH
> Magdeburg
> Tel: 0391 636 651 0
>
> Allerdata.IT - Bitstore Wittenberg GmbH
> Wittenberg
> Tel: 03491 876 735 7
>
> Büro Liebenwalde
> Tel: 033054 810 00
>
> HSA - das Büro - Bitstore Altenburg UG
> Altenburg
> Tel: 0344 784 390 97
>
> Bitstore IT – Consulting GmbH
> NL Piesteritz
> Piesteritz
> Tel: 03491 644 868 6
>
> Solltec IT-Services - Bitstore Braunschweig UG
> Braunschweig
> Tel: 0531 206 068 0
>
> MF Computer Service - Bitstore Gütersloh GmbH
> Gütersloh
> Tel: 05245 920 809 3
>
> Firmensitz: AM-Soft IT-Service - Bitstore Hameln GmbH i.G. , Brandenburger 
> Str. 7c , 31789 Hameln
> Geschäftsführer Janine Galonska
>
>
>
>
>
>

Reply via email to