Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Log4J, DailyRollingFileAppender is not extendable ... !

Reply
Thread Tools

Log4J, DailyRollingFileAppender is not extendable ... !

 
 
etienno@gmail.com
Guest
Posts: n/a
 
      07-10-2006
Hi there,

a little comment to the guys that made the DailyRollingFileAppender ( *
@author Eirik Lygre
* @author Ceki Gulcu). Why is DailyRollingFileAppender not simply
extendable?

I mean that there is some private and or "default/package" fieds with
no getter acessors. So, no one can overide and extend the
DailyRollingFileAppender methods... per example I cannot change the way
the file name is build...

So the only way here is to make a copy and paste of all the code and
modify the custom classe. Not very nice and smell bad. Knowing that
Log4j is used by many java programmers... It could be very simple to
refactor this classe (and many other one) and make
DailyRollingFileAppender a bit more coherent with other
RollingFileAppender, etc...

Etienne
Paris.

 
Reply With Quote
 
 
 
 
Oliver Wong
Guest
Posts: n/a
 
      07-10-2006

<> wrote in message
news: ups.com...
> Hi there,
>
> a little comment to the guys that made the DailyRollingFileAppender ( *
> @author Eirik Lygre
> * @author Ceki Gulcu). Why is DailyRollingFileAppender not simply
> extendable?


If I google for "Eirik Lygre" I get an e-mail address for him/her. Same
with "Ceki Gulcu". I don't want to post them here in case there's harvesting
spam bots.

- Oliver

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DailyRollingFileAppender and log4j.xml David Java 1 05-01-2007 11:54 AM
[log4j] Best of both RollingFileAppender and DailyRollingFileAppender? stephan@stresing.com Java 0 02-06-2006 01:51 PM
DailyRollingFileAppender and path David Java 0 09-28-2004 08:30 PM
Rolling to different location using DailyRollingFileAppender Dharmveer Jain Java 0 09-14-2004 01:51 PM
log4j and DailyRollingFileAppender issue Seb Java 0 10-27-2003 12:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57