Re: [boost] [Logging] logger as class's member

I'm not sure you can do (string)"A.". Try ::createlog(string("A.") + get_name()); On 5/8/06, mos <mmosquito@163.com> wrote:
Hi! I have a class A, and A have several instance, each instance I want have a logger (not all of A share a logger), what can I do. I had throught like this:
class A{ logger m_log; const char* get_name(); //like tom,jarry... void CreateLog() { m_log = ::createlog((string)"A."+get_name()); } }
but seems can not get there, what can I do? Thanks in advance for your help. mos.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

I'm not sure you can do (string)"A.". Try ::createlog(string("A.") + get_name());
I am sorry not describle the question clearly. the function ::createlog is just in my mind not on code (the author of logging not privide) I just want (really want) there will be such a function can solve my problem! so, Is there any other way to my goal ?
participants (2)
-
mos
-
Silex