Unfortunately, I'm not the one who's our log4cxx expert... I'll ask though...

Renny Koshy
President & CEO

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



孙 晓光 <[EMAIL PROTECTED]>

11/18/2004 11:34 AM
Please respond to "Log4CXX User"

       
        To:        log4cxx-user@logging.apache.org
        cc:        
        Subject:        Re: Is this project still alive????



Thanks for your reply. Could you tell me what's wrong in my client code? I
cannot find any sample code of using SocketHubAppender, so I try to connect
to SocketHubAppender using Socket and SocketInputStream. Yet It can not
receive any log messages. Thanks!!

Here it is:

#include <log4cxx/helpers/socket.h>
#include <log4cxx/spi/loggingevent.h>
#include <log4cxx/net/socketnode.h>
#include <log4cxx/helpers/thread.h>
#include <log4cxx/logmanager.h>
#include <iostream>

int main(){
 log4cxx::helpers::SocketPtr __socket;
 log4cxx::spi::LoggingEventPtr __logging_event;
 log4cxx::helpers::SocketInputStreamPtr __input_stream;

 __socket=new log4cxx::helpers::Socket("192.168.123.244",4561);
 __input_stream=__socket->getInputStream();

 while(true){
   __logging_event->read(__input_stream);
   std::cout << __logging_event->getMessage() << std::endl;
 };
 __socket->close();
}

>From: [EMAIL PROTECTED]
>Reply-To: "Log4CXX User" <log4cxx-user@logging.apache.org>
>To: "Log4CXX User" <log4cxx-user@logging.apache.org>
>CC: log4cxx-user@logging.apache.org
>Subject: Re: Is this project still alive????
>Date: Thu, 18 Nov 2004 11:28:36 -0500
>
>Really?  It worked for us... I'm pretty sure one of my dev's was playing
>with it...
>
>Renny Koshy
>President & CEO
>
>--------------------------------------------
>RUBIX Information Technologies, Inc.
>www.rubixinfotech.com
>
>
>
>
>孙 晓光 <[EMAIL PROTECTED]>
>11/18/2004 11:22 AM
>Please respond to "Log4CXX User"
>
>
>         To:     log4cxx-user@logging.apache.org
>         cc:
>         Subject:        Re: Is this project still alive????
>
>
>Me too. I use it in developing our application server system. The only
>problem is SockHubAppender can not work!
>
> >From: [EMAIL PROTECTED]
> >Reply-To: "Log4CXX User" <log4cxx-user@logging.apache.org>
> >To: "Log4CXX User" <log4cxx-user@logging.apache.org>
> >Subject: Re: Is this project still alive????
> >Date: Thu, 18 Nov 2004 11:13:15 -0500
> >
> >Yes... we're using it in a production environment... with no
identifiable
> >problems (except the time-stamp).   There is a strange core dump we keep
> >having, but because we use an in-memory database and an active/standby
> >setup ... that's transparent to system operation.
> >
> >Renny Koshy
> >President & CEO
> >
> >--------------------------------------------
> >RUBIX Information Technologies, Inc.
> >www.rubixinfotech.com
> >
> >
> >
> >
> >"Anton M?ler" <[EMAIL PROTECTED]>
> >11/18/2004 10:57 AM
> >Please respond to "Log4CXX User"
> >
> >
> >         To:     log4cxx-user@logging.apache.org
> >         cc:
> >         Subject:        Is this project still alive????
> >
> >
> >Hello everybody,
> >
> >is there actually somebody who is responsible for this project???
> >
> >I ask because I wrote already 2 mails
> >to Michael Catanzariti without response....

> >
> >and I remember a post from him where he was searching C++
> >programmers because he was the only one at that moment.
> >
> >Any news about status or whatever, is somebody
> >working with log4cxx in production systems ??
> >
> >Bye
> >
> >
> >
> >
> >--
> >NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
> >GMX DSL-Netzanschluss + Tarif zum superg?stigen Komplett-Preis!
> >
> >
>
>_________________________________________________________________
>享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com
>
>
>
>

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



Reply via email to