[Logging] logger as class's member

8 May
2006
8 May
'06
6:01 a.m.
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.
6988
Age (days ago)
6988
Last active (days ago)
0 comments
1 participants
participants (1)
-
mos