logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shuvalov, Andrew V" <Andrew.Shuva...@gs.com>
Subject Virtual LoggingEvent
Date Thu, 27 May 2004 16:51:14 GMT


So can we do that?

I mean, change spi/loggingevent.h to have:

	virtual ~LoggingEvent();

and 

	virtual const String& getNDC() const;

I'll be totally happy :-)))
Thanks!

>
> Hi,
>
> I wonder if it makes sense to make the LoggingEvent class virtual. I'm 
> overriding it, and everything is ok as long as I don't need to 
> substitute a method or another. But it looks like I'd like to have 
> this option.
>
> Explicitly, I want to be able to override the getNDC() method, because 
> I want to substitute the NDC implementation from the package with my 
> own implementation. I need this for better integration with C. I want 
> some C libraries to use NDC and make it compatible with log4cxx.
>
> What do you think?
> Andrew
>


Mime
View raw message