You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by re...@rubixinfotech.com on 2004/11/19 20:04:17 UTC

SocketHubAppender client

Someone had asked a couple of days ago regarding the sockethubappender. I 
got this from our developer who was using the sockethubappender...

BTW -- did you setup a socket hub appender configuration in your server 
side before tryingto connect?

Renny Koshy
President & CEO

--------------------------------------------
RUBIX Information Technologies, Inc.
www.rubixinfotech.com




RE: SocketHubAppender client

Posted by 孙 晓光 <x_...@hotmail.com>.
Paul Nader:

I have just tried your props. But I also dosenot produce any log output. 
Anyway, thank you!
My developing environment is gentoo 2004.2 kernel version 2.6.9-r4. Do you 
have any suggestions about solving this problem?

Sincerely,

Sun Xiaoguang

>From: "Paul Nader" <Pa...@telefonica.net>
>Reply-To: "Log4CXX User" <lo...@logging.apache.org>
>To: "'Log4CXX User'" <lo...@logging.apache.org>
>Subject: RE: SocketHubAppender client
>Date: Fri, 19 Nov 2004 20:45:06 +0100
>
>Anton,
>
>These are the props we used:
>
>log4j.logger.SocDataLogger=OFF, hubdatafile, socdatafile
>log4j.additivity.SocDataLogger=false
>
>log4j.appender.hubdatafile=SocketHubAppender
>log4j.appender.hubdatafile.Port=13289
>
>log4j.appender.socdatafile=SocketAppender
>log4j.appender.socdatafile.RemoteHost=blade
>log4j.appender.socdatafile.Port=14445
>
>Maybe try testing you are actually logging something by replacing it with 
a DailyRollingFileAppender?
>
>Regards
>
>Paul Nader
>Consulting Engineer
>Rubix Information Technlogies, Inc.
>www.rubixinfotech.com
>
> > -----Mensaje original-----
> > De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com]
> > Enviado el: Friday, 19 November 2004 8:26 PM
> > Para: log4cxx-user@logging.apache.org
> > Asunto: RE: SocketHubAppender client
> >
> >
> > I think may there are something wrong with my SocketHubAppender in my
> > server side. I have tried your code. But it show nothing.
> > Are there any error in my properties file? Thanks!
> >
> > here it is my properties file.
> >
> > log4j.rootLogger=debug, hls, hub
> > log4j.hds.hdsconfig=debug, hls, hub
> > log4j.hds.hdsconfig=debug, hls, hub
> >
> > log4j.appender.hls=org.apache.log4j.SocketAppender
> > log4j.appender.hls.RemoteHost=localhost
> > log4j.appender.hls.Port=4560
> >
> > log4j.appender.hub=org.apache.log4j.SocketHubAppender
> > log4j.appender.hub.Port=4561
> >
> >
> > >From: renny.koshy@rubixinfotech.com
> > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > >To: log4cxx-user@logging.apache.org
> > >CC: x_explorer@hotmail.com
> > >Subject: SocketHubAppender client
> > >Date: Fri, 19 Nov 2004 14:04:17 -0500
> > >
> > >Someone had asked a couple of days ago regarding the
> > sockethubappender.
> > >I got this from our developer who was using the sockethubappender...
> > >
> > >BTW -- did you setup a socket hub appender configuration in
> > your server
> > >side before tryingto connect?
> > >
> > >Renny Koshy
> > >President & CEO
> > >
> > >--------------------------------------------
> > >RUBIX Information Technologies, Inc.
> > >www.rubixinfotech.com
> > >
> > >
> > >
> > ><< CdrSocketClient.cpp >>
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/
> >
>

_________________________________________________________________
�������������ĵ����ʼ�ϵͳ�� MSN Hotmail��  http://www.hotmail.com  


RE: SocketHubAppender client

Posted by Paul Nader <Pa...@telefonica.net>.
Anton,

These are the props we used:

log4j.logger.SocDataLogger=OFF, hubdatafile, socdatafile
log4j.additivity.SocDataLogger=false

log4j.appender.hubdatafile=SocketHubAppender
log4j.appender.hubdatafile.Port=13289

log4j.appender.socdatafile=SocketAppender
log4j.appender.socdatafile.RemoteHost=blade
log4j.appender.socdatafile.Port=14445

Maybe try testing you are actually logging something by replacing it with a DailyRollingFileAppender?

Regards

Paul Nader
Consulting Engineer
Rubix Information Technlogies, Inc.
www.rubixinfotech.com

> -----Mensaje original-----
> De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com] 
> Enviado el: Friday, 19 November 2004 8:26 PM
> Para: log4cxx-user@logging.apache.org
> Asunto: RE: SocketHubAppender client
> 
> 
> I think may there are something wrong with my SocketHubAppender in my 
> server side. I have tried your code. But it show nothing.
> Are there any error in my properties file? Thanks!
> 
> here it is my properties file.
> 
> log4j.rootLogger=debug, hls, hub
> log4j.hds.hdsconfig=debug, hls, hub
> log4j.hds.hdsconfig=debug, hls, hub
> 
> log4j.appender.hls=org.apache.log4j.SocketAppender
> log4j.appender.hls.RemoteHost=localhost
> log4j.appender.hls.Port=4560
> 
> log4j.appender.hub=org.apache.log4j.SocketHubAppender
> log4j.appender.hub.Port=4561
> 
> 
> >From: renny.koshy@rubixinfotech.com
> >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> >To: log4cxx-user@logging.apache.org
> >CC: x_explorer@hotmail.com
> >Subject: SocketHubAppender client
> >Date: Fri, 19 Nov 2004 14:04:17 -0500
> >
> >Someone had asked a couple of days ago regarding the 
> sockethubappender. 
> >I got this from our developer who was using the sockethubappender...
> >
> >BTW -- did you setup a socket hub appender configuration in 
> your server 
> >side before tryingto connect?
> >
> >Renny Koshy
> >President & CEO
> >
> >--------------------------------------------
> >RUBIX Information Technologies, Inc.
> >www.rubixinfotech.com
> >
> >
> >
> ><< CdrSocketClient.cpp >>
> 
> _________________________________________________________________
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  
> 


RE: SocketHubAppender client

Posted by 孙 晓光 <x_...@hotmail.com>.
Paul,

Yes, I have just checked out the last code. Yet, the automake complains 
that there are some error in configure.in. So do I fear about breaking 
existing work. Than I chose to modify the original 0.9.7 codes.

BTW: Several days ago, I find 0.9.7 code cannot be compiled under freebsd. 
I add some platform case compile code to solve it. It seems we all need a 
new release.

Sun

>From: "Paul Nader" <Pa...@telefonica.net>
>Reply-To: "Log4CXX User" <lo...@logging.apache.org>
>To: "'Log4CXX User'" <lo...@logging.apache.org>
>Subject: RE: SocketHubAppender client
>Date: Fri, 19 Nov 2004 21:50:11 +0100
>
>Actualy I agree, the 0.9.7 tarball is ancient (over 6 months at the 
least)... and that also happens to be the latest tag in CVS :( I haven't 
deared use the latest CVS snapshot for fear of breaking existing code; An 
uptodate/tested release would be very welcome by quite a few of us...
>
>Paul
>
> > -----Mensaje original-----
> > De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com]
> > Enviado el: Friday, 19 November 2004 9:19 PM
> > Para: log4cxx-user@logging.apache.org
> > Asunto: RE: SocketHubAppender client
> >
> >
> > Dear Paul:
> >
> > Great!
> >
> > Thanks for your patch, I have modified these lines, then
> > recompiled it. Now
> > it works well on my system.  It seems that I must update code
> > with cvs. The
> > release bz2 tarball is too old.
> >
> > :)
> >
> > Regards,
> >
> > Sun Xiaoguang
> >
> > >From: "Paul Nader" <Pa...@telefonica.net>
> > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > >To: "'Log4CXX User'" <lo...@logging.apache.org>
> > >Subject: RE: SocketHubAppender client
> > >Date: Fri, 19 Nov 2004 20:52:48 +0100
> > >
> > >Anton,
> > >
> > >Thinking back to it I actually reported a fault in
> > sockethubappender.
> > >Here
> > is my email to Michael... Maybe its still faulty?
> > >
> > >Paul.
> > >
> > >Hi Micha毛l,
> > >
> > >I've been doing a bit more testing with log4cxx and noticed that
> > sockethubappender didn't seem to work. I investigated and
> > found that the
> > oosList was not been passed by reference to the
> > ServerMonitor. I made a
> > diff of my changes in case you are interested:
> > >
> > >bash-2.03$ diff net/sockethubappender.h
> > /export/home3/pnader/log4cxx-0.9.7/include/log4cxx/net/socketh
> > ubappender.h
> > >198c198
> > ><
> > std::vector<helpers::SocketOutputStreamPtr> oosList;
> > >---
> > > >
> > > > std::vector<helpers::SocketOutputStreamPtr> &oosList;
> > >210c210
> > ><                               const
> > std::vector<helpers::SocketOutputStreamPtr>& oosList);
> > >---
> > > >
> > > > std::vector<helpers::SocketOutputStreamPtr>& oosList);
> > >
> > >
> > >bash-2.03$ diff sockethubappender.cpp
> > /export/home3/pnader/log4cxx-0.9.7/src/sockethubappender.cpp
> > >165c165
> > >< SocketHubAppender::ServerMonitor::ServerMonitor(int port, const
> > std::vector<helpers::SocketOutputStreamPtr>& oosList)
> > >---
> > > > SocketHubAppender::ServerMonitor::ServerMonitor(int port,
> > > > std::vector<helpers::SocketOutputStreamPtr>& oosList)
> > >
> > >
> > >
> > > > -----Mensaje original-----
> > > > De: 脣茂 脧镁鹿芒 [mailto:x_explorer@hotmail.com]
> > > > Enviado el: Friday, 19 November 2004 8:26 PM
> > > > Para: log4cxx-user@logging.apache.org
> > > > Asunto: RE: SocketHubAppender client
> > > >
> > > >
> > > > I think may there are something wrong with my
> > SocketHubAppender in
> > > > my server side. I have tried your code. But it show nothing. Are
> > > > there any error in my properties file? Thanks!
> > > >
> > > > here it is my properties file.
> > > >
> > > > log4j.rootLogger=debug, hls, hub
> > > > log4j.hds.hdsconfig=debug, hls, hub
> > log4j.hds.hdsconfig=debug, hls,
> > > > hub
> > > >
> > > > log4j.appender.hls=org.apache.log4j.SocketAppender
> > > > log4j.appender.hls.RemoteHost=localhost
> > > > log4j.appender.hls.Port=4560
> > > >
> > > > log4j.appender.hub=org.apache.log4j.SocketHubAppender
> > > > log4j.appender.hub.Port=4561
> > > >
> > > >
> > > > >From: renny.koshy@rubixinfotech.com
> > > > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > > > >To: log4cxx-user@logging.apache.org
> > > > >CC: x_explorer@hotmail.com
> > > > >Subject: SocketHubAppender client
> > > > >Date: Fri, 19 Nov 2004 14:04:17 -0500
> > > > >
> > > > >Someone had asked a couple of days ago regarding the
> > > > sockethubappender.
> > > > >I got this from our developer who was using the
> > > > >sockethubappender...
> > > > >
> > > > >BTW -- did you setup a socket hub appender configuration in
> > > > your server
> > > > >side before tryingto connect?
> > > > >
> > > > >Renny Koshy
> > > > >President & CEO
> > > > >
> > > > >--------------------------------------------
> > > > >RUBIX Information Technologies, Inc.
> > > > >www.rubixinfotech.com
> > > > >
> > > > >
> > > > >
> > > > ><< CdrSocketClient.cpp >>
> > > >
> > > > _________________________________________________________________
> > > > 鍏嶈垂涓嬭浇 MSN Explorer:   http://explorer.msn.com/lccn/
> > > >
> > >
> >
> > _________________________________________________________________
> > 与联机的朋友进行交流,请使用 MSN Messenger:  
http://messenger.msn.com/cn
> >
>

_________________________________________________________________
�����������ѽ��н�������ʹ�� MSN Messenger:  http://messenger.msn.com/cn  


RE: SocketHubAppender client

Posted by Paul Nader <Pa...@telefonica.net>.
Actualy I agree, the 0.9.7 tarball is ancient (over 6 months at the least)... and that also happens to be the latest tag in CVS :( I haven't deared use the latest CVS snapshot for fear of breaking existing code; An uptodate/tested release would be very welcome by quite a few of us...

Paul

> -----Mensaje original-----
> De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com] 
> Enviado el: Friday, 19 November 2004 9:19 PM
> Para: log4cxx-user@logging.apache.org
> Asunto: RE: SocketHubAppender client
> 
> 
> Dear Paul:
> 
> Great!
> 
> Thanks for your patch, I have modified these lines, then 
> recompiled it. Now 
> it works well on my system.  It seems that I must update code 
> with cvs. The 
> release bz2 tarball is too old.
> 
> :)
> 
> Regards,
> 
> Sun Xiaoguang
> 
> >From: "Paul Nader" <Pa...@telefonica.net>
> >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> >To: "'Log4CXX User'" <lo...@logging.apache.org>
> >Subject: RE: SocketHubAppender client
> >Date: Fri, 19 Nov 2004 20:52:48 +0100
> >
> >Anton,
> >
> >Thinking back to it I actually reported a fault in 
> sockethubappender. 
> >Here
> is my email to Michael... Maybe its still faulty?
> >
> >Paul.
> >
> >Hi Micha毛l,
> >
> >I've been doing a bit more testing with log4cxx and noticed that
> sockethubappender didn't seem to work. I investigated and 
> found that the 
> oosList was not been passed by reference to the 
> ServerMonitor. I made a 
> diff of my changes in case you are interested:
> >
> >bash-2.03$ diff net/sockethubappender.h
> /export/home3/pnader/log4cxx-0.9.7/include/log4cxx/net/socketh
> ubappender.h
> >198c198
> ><                               
> std::vector<helpers::SocketOutputStreamPtr> oosList;
> >---
> > >
> > > std::vector<helpers::SocketOutputStreamPtr> &oosList;
> >210c210
> ><                               const 
> std::vector<helpers::SocketOutputStreamPtr>& oosList);
> >---
> > >
> > > std::vector<helpers::SocketOutputStreamPtr>& oosList);
> >
> >
> >bash-2.03$ diff sockethubappender.cpp
> /export/home3/pnader/log4cxx-0.9.7/src/sockethubappender.cpp
> >165c165
> >< SocketHubAppender::ServerMonitor::ServerMonitor(int port, const
> std::vector<helpers::SocketOutputStreamPtr>& oosList)
> >---
> > > SocketHubAppender::ServerMonitor::ServerMonitor(int port, 
> > > std::vector<helpers::SocketOutputStreamPtr>& oosList)
> >
> >
> >
> > > -----Mensaje original-----
> > > De: 脣茂 脧镁鹿芒 [mailto:x_explorer@hotmail.com]
> > > Enviado el: Friday, 19 November 2004 8:26 PM
> > > Para: log4cxx-user@logging.apache.org
> > > Asunto: RE: SocketHubAppender client
> > >
> > >
> > > I think may there are something wrong with my 
> SocketHubAppender in 
> > > my server side. I have tried your code. But it show nothing. Are 
> > > there any error in my properties file? Thanks!
> > >
> > > here it is my properties file.
> > >
> > > log4j.rootLogger=debug, hls, hub
> > > log4j.hds.hdsconfig=debug, hls, hub 
> log4j.hds.hdsconfig=debug, hls, 
> > > hub
> > >
> > > log4j.appender.hls=org.apache.log4j.SocketAppender
> > > log4j.appender.hls.RemoteHost=localhost
> > > log4j.appender.hls.Port=4560
> > >
> > > log4j.appender.hub=org.apache.log4j.SocketHubAppender
> > > log4j.appender.hub.Port=4561
> > >
> > >
> > > >From: renny.koshy@rubixinfotech.com
> > > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > > >To: log4cxx-user@logging.apache.org
> > > >CC: x_explorer@hotmail.com
> > > >Subject: SocketHubAppender client
> > > >Date: Fri, 19 Nov 2004 14:04:17 -0500
> > > >
> > > >Someone had asked a couple of days ago regarding the
> > > sockethubappender.
> > > >I got this from our developer who was using the 
> > > >sockethubappender...
> > > >
> > > >BTW -- did you setup a socket hub appender configuration in
> > > your server
> > > >side before tryingto connect?
> > > >
> > > >Renny Koshy
> > > >President & CEO
> > > >
> > > >--------------------------------------------
> > > >RUBIX Information Technologies, Inc.
> > > >www.rubixinfotech.com
> > > >
> > > >
> > > >
> > > ><< CdrSocketClient.cpp >>
> > >
> > > _________________________________________________________________
> > > 鍏嶈垂涓嬭浇 MSN Explorer:   http://explorer.msn.com/lccn/
> > >
> >
> 
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  
> 


RE: SocketHubAppender client

Posted by Paul Nader <Pa...@telefonica.net>.
Great to hear...

Regards, Paul.

> -----Mensaje original-----
> De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com] 
> Enviado el: Friday, 19 November 2004 9:19 PM
> Para: log4cxx-user@logging.apache.org
> Asunto: RE: SocketHubAppender client
> 
> 
> Dear Paul:
> 
> Great!
> 
> Thanks for your patch, I have modified these lines, then 
> recompiled it. Now 
> it works well on my system.  It seems that I must update code 
> with cvs. The 
> release bz2 tarball is too old.
> 
> :)
> 
> Regards,
> 
> Sun Xiaoguang
> 
> >From: "Paul Nader" <Pa...@telefonica.net>
> >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> >To: "'Log4CXX User'" <lo...@logging.apache.org>
> >Subject: RE: SocketHubAppender client
> >Date: Fri, 19 Nov 2004 20:52:48 +0100
> >
> >Anton,
> >
> >Thinking back to it I actually reported a fault in 
> sockethubappender. 
> >Here
> is my email to Michael... Maybe its still faulty?
> >
> >Paul.
> >
> >Hi Micha毛l,
> >
> >I've been doing a bit more testing with log4cxx and noticed that
> sockethubappender didn't seem to work. I investigated and 
> found that the 
> oosList was not been passed by reference to the 
> ServerMonitor. I made a 
> diff of my changes in case you are interested:
> >
> >bash-2.03$ diff net/sockethubappender.h
> /export/home3/pnader/log4cxx-0.9.7/include/log4cxx/net/socketh
> ubappender.h
> >198c198
> ><                               
> std::vector<helpers::SocketOutputStreamPtr> oosList;
> >---
> > >
> > > std::vector<helpers::SocketOutputStreamPtr> &oosList;
> >210c210
> ><                               const 
> std::vector<helpers::SocketOutputStreamPtr>& oosList);
> >---
> > >
> > > std::vector<helpers::SocketOutputStreamPtr>& oosList);
> >
> >
> >bash-2.03$ diff sockethubappender.cpp
> /export/home3/pnader/log4cxx-0.9.7/src/sockethubappender.cpp
> >165c165
> >< SocketHubAppender::ServerMonitor::ServerMonitor(int port, const
> std::vector<helpers::SocketOutputStreamPtr>& oosList)
> >---
> > > SocketHubAppender::ServerMonitor::ServerMonitor(int port, 
> > > std::vector<helpers::SocketOutputStreamPtr>& oosList)
> >
> >
> >
> > > -----Mensaje original-----
> > > De: 脣茂 脧镁鹿芒 [mailto:x_explorer@hotmail.com]
> > > Enviado el: Friday, 19 November 2004 8:26 PM
> > > Para: log4cxx-user@logging.apache.org
> > > Asunto: RE: SocketHubAppender client
> > >
> > >
> > > I think may there are something wrong with my 
> SocketHubAppender in 
> > > my server side. I have tried your code. But it show nothing. Are 
> > > there any error in my properties file? Thanks!
> > >
> > > here it is my properties file.
> > >
> > > log4j.rootLogger=debug, hls, hub
> > > log4j.hds.hdsconfig=debug, hls, hub 
> log4j.hds.hdsconfig=debug, hls, 
> > > hub
> > >
> > > log4j.appender.hls=org.apache.log4j.SocketAppender
> > > log4j.appender.hls.RemoteHost=localhost
> > > log4j.appender.hls.Port=4560
> > >
> > > log4j.appender.hub=org.apache.log4j.SocketHubAppender
> > > log4j.appender.hub.Port=4561
> > >
> > >
> > > >From: renny.koshy@rubixinfotech.com
> > > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > > >To: log4cxx-user@logging.apache.org
> > > >CC: x_explorer@hotmail.com
> > > >Subject: SocketHubAppender client
> > > >Date: Fri, 19 Nov 2004 14:04:17 -0500
> > > >
> > > >Someone had asked a couple of days ago regarding the
> > > sockethubappender.
> > > >I got this from our developer who was using the 
> > > >sockethubappender...
> > > >
> > > >BTW -- did you setup a socket hub appender configuration in
> > > your server
> > > >side before tryingto connect?
> > > >
> > > >Renny Koshy
> > > >President & CEO
> > > >
> > > >--------------------------------------------
> > > >RUBIX Information Technologies, Inc.
> > > >www.rubixinfotech.com
> > > >
> > > >
> > > >
> > > ><< CdrSocketClient.cpp >>
> > >
> > > _________________________________________________________________
> > > 鍏嶈垂涓嬭浇 MSN Explorer:   http://explorer.msn.com/lccn/
> > >
> >
> 
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  
> 


RE: SocketHubAppender client

Posted by 孙 晓光 <x_...@hotmail.com>.
Dear Paul:

Great!

Thanks for your patch, I have modified these lines, then recompiled it. Now 
it works well on my system.  It seems that I must update code with cvs. The 
release bz2 tarball is too old.

:)

Regards,

Sun Xiaoguang

>From: "Paul Nader" <Pa...@telefonica.net>
>Reply-To: "Log4CXX User" <lo...@logging.apache.org>
>To: "'Log4CXX User'" <lo...@logging.apache.org>
>Subject: RE: SocketHubAppender client
>Date: Fri, 19 Nov 2004 20:52:48 +0100
>
>Anton,
>
>Thinking back to it I actually reported a fault in sockethubappender. Here 
is my email to Michael... Maybe its still faulty?
>
>Paul.
>
>Hi Michaël,
>
>I've been doing a bit more testing with log4cxx and noticed that 
sockethubappender didn't seem to work. I investigated and found that the 
oosList was not been passed by reference to the ServerMonitor. I made a 
diff of my changes in case you are interested:
>
>bash-2.03$ diff net/sockethubappender.h 
/export/home3/pnader/log4cxx-0.9.7/include/log4cxx/net/sockethubappender.h
>198c198
><                               
std::vector<helpers::SocketOutputStreamPtr> oosList;
>---
> >
> > std::vector<helpers::SocketOutputStreamPtr> &oosList;
>210c210
><                               const 
std::vector<helpers::SocketOutputStreamPtr>& oosList);
>---
> >
> > std::vector<helpers::SocketOutputStreamPtr>& oosList);
>
>
>bash-2.03$ diff sockethubappender.cpp 
/export/home3/pnader/log4cxx-0.9.7/src/sockethubappender.cpp
>165c165
>< SocketHubAppender::ServerMonitor::ServerMonitor(int port, const 
std::vector<helpers::SocketOutputStreamPtr>& oosList)
>---
> > SocketHubAppender::ServerMonitor::ServerMonitor(int port,
> > std::vector<helpers::SocketOutputStreamPtr>& oosList)
>
>
>
> > -----Mensaje original-----
> > De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com]
> > Enviado el: Friday, 19 November 2004 8:26 PM
> > Para: log4cxx-user@logging.apache.org
> > Asunto: RE: SocketHubAppender client
> >
> >
> > I think may there are something wrong with my SocketHubAppender in my
> > server side. I have tried your code. But it show nothing.
> > Are there any error in my properties file? Thanks!
> >
> > here it is my properties file.
> >
> > log4j.rootLogger=debug, hls, hub
> > log4j.hds.hdsconfig=debug, hls, hub
> > log4j.hds.hdsconfig=debug, hls, hub
> >
> > log4j.appender.hls=org.apache.log4j.SocketAppender
> > log4j.appender.hls.RemoteHost=localhost
> > log4j.appender.hls.Port=4560
> >
> > log4j.appender.hub=org.apache.log4j.SocketHubAppender
> > log4j.appender.hub.Port=4561
> >
> >
> > >From: renny.koshy@rubixinfotech.com
> > >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> > >To: log4cxx-user@logging.apache.org
> > >CC: x_explorer@hotmail.com
> > >Subject: SocketHubAppender client
> > >Date: Fri, 19 Nov 2004 14:04:17 -0500
> > >
> > >Someone had asked a couple of days ago regarding the
> > sockethubappender.
> > >I got this from our developer who was using the sockethubappender...
> > >
> > >BTW -- did you setup a socket hub appender configuration in
> > your server
> > >side before tryingto connect?
> > >
> > >Renny Koshy
> > >President & CEO
> > >
> > >--------------------------------------------
> > >RUBIX Information Technologies, Inc.
> > >www.rubixinfotech.com
> > >
> > >
> > >
> > ><< CdrSocketClient.cpp >>
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/
> >
>

_________________________________________________________________
�����������ѽ��н�������ʹ�� MSN Messenger:  http://messenger.msn.com/cn  


RE: SocketHubAppender client

Posted by Paul Nader <Pa...@telefonica.net>.
Anton,

Thinking back to it I actually reported a fault in sockethubappender. Here is my email to Michael... Maybe its still faulty?

Paul.

Hi Michaël,

I've been doing a bit more testing with log4cxx and noticed that sockethubappender didn't seem to work. I investigated and found that the oosList was not been passed by reference to the ServerMonitor. I made a diff of my changes in case you are interested:

bash-2.03$ diff net/sockethubappender.h /export/home3/pnader/log4cxx-0.9.7/include/log4cxx/net/sockethubappender.h
198c198
<                               std::vector<helpers::SocketOutputStreamPtr> oosList;
---
>                               
> std::vector<helpers::SocketOutputStreamPtr> &oosList;
210c210
<                               const std::vector<helpers::SocketOutputStreamPtr>& oosList);
---
>                               
> std::vector<helpers::SocketOutputStreamPtr>& oosList);


bash-2.03$ diff sockethubappender.cpp /export/home3/pnader/log4cxx-0.9.7/src/sockethubappender.cpp
165c165
< SocketHubAppender::ServerMonitor::ServerMonitor(int port, const std::vector<helpers::SocketOutputStreamPtr>& oosList)
---
> SocketHubAppender::ServerMonitor::ServerMonitor(int port, 
> std::vector<helpers::SocketOutputStreamPtr>& oosList)



> -----Mensaje original-----
> De: Ëï Ïþ¹â [mailto:x_explorer@hotmail.com] 
> Enviado el: Friday, 19 November 2004 8:26 PM
> Para: log4cxx-user@logging.apache.org
> Asunto: RE: SocketHubAppender client
> 
> 
> I think may there are something wrong with my SocketHubAppender in my 
> server side. I have tried your code. But it show nothing.
> Are there any error in my properties file? Thanks!
> 
> here it is my properties file.
> 
> log4j.rootLogger=debug, hls, hub
> log4j.hds.hdsconfig=debug, hls, hub
> log4j.hds.hdsconfig=debug, hls, hub
> 
> log4j.appender.hls=org.apache.log4j.SocketAppender
> log4j.appender.hls.RemoteHost=localhost
> log4j.appender.hls.Port=4560
> 
> log4j.appender.hub=org.apache.log4j.SocketHubAppender
> log4j.appender.hub.Port=4561
> 
> 
> >From: renny.koshy@rubixinfotech.com
> >Reply-To: "Log4CXX User" <lo...@logging.apache.org>
> >To: log4cxx-user@logging.apache.org
> >CC: x_explorer@hotmail.com
> >Subject: SocketHubAppender client
> >Date: Fri, 19 Nov 2004 14:04:17 -0500
> >
> >Someone had asked a couple of days ago regarding the 
> sockethubappender. 
> >I got this from our developer who was using the sockethubappender...
> >
> >BTW -- did you setup a socket hub appender configuration in 
> your server 
> >side before tryingto connect?
> >
> >Renny Koshy
> >President & CEO
> >
> >--------------------------------------------
> >RUBIX Information Technologies, Inc.
> >www.rubixinfotech.com
> >
> >
> >
> ><< CdrSocketClient.cpp >>
> 
> _________________________________________________________________
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  
> 


RE: SocketHubAppender client

Posted by 孙 晓光 <x_...@hotmail.com>.
I think may there are something wrong with my SocketHubAppender in my 
server side. I have tried your code. But it show nothing.
Are there any error in my properties file? Thanks!

here it is my properties file.

log4j.rootLogger=debug, hls, hub
log4j.hds.hdsconfig=debug, hls, hub
log4j.hds.hdsconfig=debug, hls, hub

log4j.appender.hls=org.apache.log4j.SocketAppender
log4j.appender.hls.RemoteHost=localhost
log4j.appender.hls.Port=4560

log4j.appender.hub=org.apache.log4j.SocketHubAppender
log4j.appender.hub.Port=4561


>From: renny.koshy@rubixinfotech.com
>Reply-To: "Log4CXX User" <lo...@logging.apache.org>
>To: log4cxx-user@logging.apache.org
>CC: x_explorer@hotmail.com
>Subject: SocketHubAppender client 
>Date: Fri, 19 Nov 2004 14:04:17 -0500
>
>Someone had asked a couple of days ago regarding the sockethubappender. I
>got this from our developer who was using the sockethubappender...
>
>BTW -- did you setup a socket hub appender configuration in your server
>side before tryingto connect?
>
>Renny Koshy
>President & CEO
>
>--------------------------------------------
>RUBIX Information Technologies, Inc.
>www.rubixinfotech.com
>
>
>
><< CdrSocketClient.cpp >>

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/