logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

RE: SocketHubAppender client: msg#00040

apache.logging.log4cxx.user

Subject: RE: SocketHubAppender client

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@xxxxxxxxxxx]
> Enviado el: Friday, 19 November 2004 8:26 PM
> Para: log4cxx-user@xxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxx
> >Reply-To: "Log4CXX User" <log4cxx-user@xxxxxxxxxxxxxxxxxx>
> >To: log4cxx-user@xxxxxxxxxxxxxxxxxx
> >CC: x_explorer@xxxxxxxxxxx
> >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/
>




<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo