On Dec 7, 2004, at 6:20 AM, Prosenjit Sinha wrote:
Thanx Curt,
The appender class which I am going to create will only be used for
obtaining the logging string from the OStream *os variable(I have found out
only this mechanism by which I can get the logging string in my own
class....is there any other method for it).This logging string will be used
for some other purpose but not for logging.
I have tried to use "log4cxx::LayoutPtr layout(new
log4cxx::PatternLayout("%m %n\n"));" --But it is giving me an error that
PatternLayout is not defined in log4cxx.
The implementation of WriterAppender is changing and will no longer contain an std::ostream. The new form might work better for you. Hopefully will have it in CVS in a day or two.
Have you included <log4cxx/patternlayout.h>?
