Hi,

I played with the RollingFileAppender in log4j 1.3 today, mainly
because I started some work on the RollingFileAppender in log4cxx.
Just to be sure:

- The old RollingFileAppender (outside the rolling package)
  is not supported anymore, not even as a delegate to support
  the old property configuration?

- I tried to configure the new RollingFileAppender like

log4j.appender.testAppender=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.testAppender.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.testAppender.file=RFA-test1.log

  but it seems that properties can still only be Strings, especially
  if their setter begins with "set" (there seems to be a similar
  mechanism for "add..." methods). Complex types (like layout)
  must be handled specially in the PropertyConfigurator?

  This again would mean that configuring the RollingFileAppender
  is not yet possible with the PropertyConfigurator?

  Would it be a proper solution to add special runtime instanciation
  of the triggeringPolicy class to the PropertyConfigurator, or is
  a smarter method intended (like looking for a setter which takes
  an Object, and trying to instanciate a class with the given property
  value)?

Just want to make sure that I add a patch which was sent for log4cxx
in the most log4j-alike way...

Thanks,

        Andreas

--
Andreas Fester
mailto:[EMAIL PROTECTED]
WWW: http://www.littletux.net
ICQ: 326674288

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to