On Mar 25, 2009, at 12:29 PM, Scott Deboy wrote:
I'm not sure what format log4cxx's SocketAppender uses to send logging
events.
Try using an XMLSocketAppender on the log4cxx side and an
XMLSocketReceiver
on the SimpleSocketServer side.
log4cxx 0.9.7 (a pre-ASF release) used a platform dep
You must use XMLSocketAppender to send log from any non-Java client to
Java server.
Put something like this into your C++ properties file :
log4j.appender.A1=org.apache.log4j.net.XMLSocketAppender
log4j.appender.A1.RemoteHost=localhost
log4j.appender.A1.Port=12345
It should work..
Kind regards,
I'm not sure what format log4cxx's SocketAppender uses to send logging
events.
Try using an XMLSocketAppender on the log4cxx side and an XMLSocketReceiver
on the SimpleSocketServer side.
Scott
On Wed, Mar 25, 2009 at 10:17 AM, Moley Harey wrote:
> Hi folks,
>
> I have implemented a Java Simple
Hi folks,
I have implemented a Java SimpleSocketServer application that is running
with log4j version 1.2, I have done a test Java class that initialize the
logging and sends a couple of messages to the SimpleSocketServer and works
fine, all messages sent by the test class are succesfully written
The receiver can handle multi-line messages, but it isn't foolproof. If
there's a choice, using XMLLayout will give you more predictable results.
Scott
On Wed, Mar 25, 2009 at 7:53 AM, Douglas E Wegscheid <
douglas_e_wegsch...@whirlpool.com> wrote:
> you could, but you still have the problem of
you could, but you still have the problem of handling multi-line messages.
if you have the option to change layout, xmllayout is pretty foolproof...
Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation
(269)-923-5278
"A wrong note played hesitatingly is a wrong note. A wrong note pl
LogFilePatternReceiver will do this...you'd have to write a simple appender
that processes the events the are generated by the receiver. Both your
appender and the receiver need to be added to the log4j configuration file.
Scott
On Wed, Mar 25, 2009 at 7:38 AM, Christophe Elek wrote:
> Hey Dou
Hey Doug,
Yes I agree
I was thinking I could use the same ConversionPattern
So if my log4j properties lists
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} [%t] %5p
%-50.50c - %m%n
it would use the ConversionPatten as a regex and read each line ??
am I dreaming ? :)
Christophe
doing this with an arbitrary layout would be quite daunting.
if you use XMLLayout, then reading the XML and doing what you want would
be quite simple.
Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation
(269)-923-5278
"A wrong note played hesitatingly is a wrong note. A wrong note
I am looking for a solution that would do the 'reverse' of logging into a
log file: reading a log file into java obects.
I want a tool that would take a log4j.properties, a log generated using
this log4j.properties and would transform each event into an object
Then I can run an analyzer :)
Does i
10 matches
Mail list logo