logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manas Agarwal <manasagarwa...@gmail.com>
Subject Error of namespace in using macro IMPLEMENT_LOG4CXX_LEVEL
Date Tue, 07 Jul 2009 11:52:24 GMT

I am trying to migrate to log4cxx 0.10 from log4cxx 0.9.7.
There is a custom level class implemented in namespace X inheriting
from log4cxx::Level.
In this class I have declared this macro DECLARE_LOG4CXX_LEVEL while macro
IMPLEMENT_LOG4CXX_LEVEL is called outside the class.
However on trying to compile the my code it states that
‘X::log4cxx::helpers’ has not been declared.
This code was getting compiled using version 0.9.7
This is at the line where I called macro IMPLEMENT_LOG4CXX_LEVEL
passing it the name of my class.

I have tried macro expanding and it looks just like the ealier code
except for one function registerClass.
Is this error due to way the log4cxx is using registerClass or due to
my incorrect usage?

Please suggest.


View raw message