Re: Is this project still alive????

2004-11-19 Thread Paul Nader
Hi Anton,

You need to read a LoggingEvent and then access the message, timestamp, etc
using the methods provided...

The code below implements a working client.

Regards, Paul

Consulting Engineer
RUBIX Information Technologies, Inc.
www.rubixinfotech.com

#include 
#include 
#include 
#include 
#include 
#include 

using namespace std;
using namespace log4cxx::spi;
using namespace log4cxx::helpers;

Socket *s;
extern "C" void signalHandler(int sig)
{
if ((sig == SIGTERM) || (sig == SIGINT) || (sig == SIGPIPE))
{
s->close();
exit(0);
}
}

int main (int argc, char *argv[])
{

if (argc != 3)
{
printf("SocketClient hostname port\n");
return(1);
}

char *host = argv[1];
int port = atoi(argv[2]);

try 
{
InetAddress address = InetAddress::getByName(host);
s = new Socket(address, port);
SocketInputStreamPtr istrm = s->getInputStream();
DateFormat dateFormat("%Y-%m-%d %H:%M:%S,%Q");
LoggingEvent event;
while (true)
{
event.read(istrm);
cout << dateFormat.format(event.getTimeStamp()) << " " \
<< event.getLevel()->toString() << " " \
<< event.getMessage() << endl;
}
}
catch (SocketException &ex)
{
cerr << ex.getMessage() << endl;
}
catch (...)
{
cerr << "Unexpected exception" << endl;
}

return(0);
}



RE: Is this project still alive

2004-11-19 Thread Curt Arnold
This is a reply to a query addressed to me personally, but I'm replying to the 
user mailing list so that anybody else who wants to pitch in can help.

I think I'm going to have to grit out the APR conversion solo.  It is just a 
little too hard to distribute and nobody stepped up before it got underway.  
I've already committed the date related changes, have the thread related 
changes in progress on my machine and will start the Unicode changes after 
committing the thread changes.

If you have platform that you are particularly interested in, you could attempt 
to compile APR (http://apr.apache.org) and report any issues to the apr-dev 
mailing list or on Bugzilla (I'll monitor these also, but am not and don't 
desire to be an APR committer).  I suspect that I will create an Ant build for 
APR at least to support Borland C++. 

It would be great if someone could compare the test suite with the log4j test 
suite.  The log4cxx tests I have looked at have been fairly straigtforward 
ports of the log4j tests, but I have no idea if 10% or 90% of the log4j tests 
have been ported.

Curt

Is there anything that we can help with?  I can't dedicate full time resources, but a lot of the time, I have developers who aren't fully utilized.  Though we're getting packed lately, maybe we can help with something?

Renny Koshy
President & CEO


RUBIX Information Technologies, Inc.
www.rubixinfotech.com






Curt Arnold <[EMAIL PROTECTED]>
11/19/2004 01:41 AM
Please respond to "Log4CXX User"

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


Michael has notified the Logging Project Management Committee and the log4cxx committers that he does not expect to be involved in the project again until November 2005.  Though we will miss Michael his absence does not indicate that the project is dead.  log4cxx is still being actively (maybe too actively) developed, the mailing lists are active and there seems to be a fairly healthy community developing.  Please address any requests or comments to one of the mailing lists and they should get replied to in fairly short order.

Sorry things are a little ragged right now as I'm trying to switch log4cxx to APR at the same time I've been on the road (for ApacheCON).  At the moment, I believe that only the Ant build will compile, I haven't been keeping the GNU make or Visual Studio build definitions in synch.  While the APR conversion is in process, things  will be fragile, but I'm convinced that it will be a very good thing (and we can forever forget about bug reports on in-line Solaris assembler code).

Borland C++ compilation is on my to-do list before 0.9.8, but I can't offer any help at the moment.





RE: Is this project still alive

2004-11-19 Thread Curt Arnold
Michael has notified the Logging Project Management Committee and the log4cxx 
committers that he does not expect to be involved in the project again until 
November 2005.  Though we will miss Michael his absence does not indicate that 
the project is dead.  log4cxx is still being actively (maybe too actively) 
developed, the mailing lists are active and there seems to be a fairly healthy 
community developing.  Please address any requests or comments to one of the 
mailing lists and they should get replied to in fairly short order.

Sorry things are a little ragged right now as I'm trying to switch log4cxx to 
APR at the same time I've been on the road (for ApacheCON).  At the moment, I 
believe that only the Ant build will compile, I haven't been keeping the GNU 
make or Visual Studio build definitions in synch.  While the APR conversion is 
in process, things  will be fragile, but I'm convinced that it will be a very 
good thing (and we can forever forget about bug reports on in-line Solaris 
assembler code).

Borland C++ compilation is on my to-do list before 0.9.8, but I can't offer any 
help at the moment.



Re: Is this project still alive????

2004-11-18 Thread 孙 晓光
Thanks!!!
From: [EMAIL PROTECTED]
Reply-To: "Log4CXX User" 
To: "Log4CXX User" 
CC: log4cxx-user@logging.apache.org
Subject: Re: Is this project still alive
Date: Thu, 18 Nov 2004 11:47:04 -0500
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 
#include 
#include 
#include 
#include 
#include 
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" 
>To: "Log4CXX User" 
>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" 
> >To: "Log4CXX User" 
> >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


_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



Re: Is this project still alive????

2004-11-18 Thread renny . koshy

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 
#include 
#include 
#include 
#include 
#include 

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" 
>To: "Log4CXX User" 
>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" 
> >To: "Log4CXX User" 
> >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  






Re: Is this project still alive????

2004-11-18 Thread 孙 晓光
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 
#include 
#include 
#include 
#include 
#include 
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" 
To: "Log4CXX User" 
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" 
>To: "Log4CXX User" 
>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  



Re: Is this project still alive????

2004-11-18 Thread renny . koshy

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" 
>To: "Log4CXX User" 
>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  






Re: Is this project still alive????

2004-11-18 Thread FabijanicA

I am using it in production. My setup
is following:

log4cxx enabled apps => local file
(DailyRollingFileAppender)
|
|=> remote simplesocketserver (SocketAppender)
=> chainsaw (XMLSocketAppender)

local (DailyRollingFileAppender) runs
fine (except that there is no way to automaticlly purge old log files afaik)
simplesocketserver dies sometimes (not
very often, once a month perhaps)

+++
Aleksandar Fabijanic
Level 2 Automation Engineer 
Nucor Steel Berkeley - Beam Mill
Phone: 843.336.6678
Fax:      843.336.6072
---

"Anton Müller" <[EMAIL PROTECTED]> wrote
on 11/18/2004 10:57:29 AM:

> 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ünstigen Komplett-Preis!


Re: Is this project still alive????

2004-11-18 Thread 孙 晓光
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" 
To: "Log4CXX User" 
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  



Re: Is this project still alive????

2004-11-18 Thread renny . koshy

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üller" <[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ünstigen Komplett-Preis!