Jeroen,

Yes, unfortunately, this is the case right now.  All of the client tools are
geared to supporting SocketAppender (actually I have not looked at LF5
closely enough yet, but I assume it is the case).  I have a copy of Chainsaw
that I modified to support connecting to a SocketHubAppender.  I have not
put these changes into log4j cvs because it is a very complete hack to the
existing source code.

There has been discussion on the dev list about extending Chainsaw/LF5 to
support multiple "source types" that would be configured as they required.
But this work has not yet commenced as we are waiting for
guidance/leadership from Oliver and Brad on this subject.  I plan to help in
the design and implementation so that SocketHubAppender will be (officailly)
supported in a future version.

-Mark

> -----Original Message-----
> From: Frissaer, Jeroen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 8:58 AM
> To: Log4j Mailing List (E-mail)
> Subject: SocketHubAppender
> 
> 
> Hi Mark,
> 
> From what I read it seems not very simple to use the 
> SocketHubAppender.
> You wrote that Lumbermill probably will need some 
> modification in order to
> work with the socketHubAppender.  Is this also the case for 
> Chainsaw or LF5?
> 
> How did you use the socketHubAppender?
> 
> Regards
> Jeroen
> 
> 
> You wrote:
> 
> >Try calling the activateOptions() method on your 
> SocketAppender in your
> >start method.  It only connects after that call is made, I think.
> >
> >To use SocketHubAppender with Lumbermill, yes, I think the 
> Lumbermill code
> >would need modification.
> >
> >-Mark
> >
> > -----Original Message-----
> > From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 16, 2002 11:02 AM
> > To: Log4J Users List
> > Subject: RE: adding / removing appenders dynamically
> > 
> > 
> > Does this mean that I can't do what I'm looking to do with 
> > w/o modifying the
> > Lumbermill code?  I can't just remove or add a socket appender?
> > 
> > Thanks,
> >       Jesse
> > 
> > -----Original Message-----
> > From: Mark Womack [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 16, 2002 1:53 PM
> > To: 'Log4J Users List'
> > Subject: RE: adding / removing appenders dynamically
> > 
> > 
> > Jesse,
> > 
> > You might want to look at the SocketHubAppender that is part 
> > of the log4j
> > 1.2 release.  Instead of actively seeking a target, it waits 
> > for clients to
> > connect to it.  Multiple clients can be supported.  But you 
> > will need to
> > modify the Lumbermill code to connect to the server you want. 
> >  Plans are
> > being made to add this functionality to Chainsaw and/or 
> > LogFactor5, both of
> > which are part of the log4j (I know chainsaw is included in 
> > v1.2, I don't
> > know about LF5).
> > 
> > let me know if you have any questions.
> > -Mark
> > 
> > > -----Original Message-----
> > > From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 16, 2002 10:43 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: adding / removing appenders dynamically
> > >
> > >
> > >
> > > Lumbermill with Log4J looks great, but I don't want the
> > > socket connector for
> > > Lumbermill to be running all the time, I'd like to be able to
> > > hit a servlet
> > > at sets up the appender, then have Lumbermill connect to the
> > > server and
> > > start showing the logging info.
> > >
> > > I thought it would be easy to do, but I can't seem to get it
> > > working right.
> > > My code looks like this:
> > >
> > > public static final String LUMBERMILL_APPENDER_NAME = "LogServer";
> > >
> > > public static boolean isLumbermillSocketAppenderRunning() {
> > >     Logger rootLog = Logger.getRootLogger();
> > >     Appender app = rootLog.getAppender(LUMBERMILL_APPENDER_NAME);
> > >     return (app != null);
> > > }
> > >
> > > public static void startLumbermillSocketAppender () {
> > >     Logger rootLog = Logger.getRootLogger();
> > >     SocketAppender app = new SocketAppender("localhost", 4445);
> > >     app.setName(LUMBERMILL_APPENDER_NAME);
> > >     rootLog.addAppender(app);
> > > }
> > >
> > > public static void stopLumbermillSocketAppender () {
> > >     Logger rootLog = Logger.getRootLogger();
> > >     rootLog.removeAppender(LUMBERMILL_APPENDER_NAME);
> > > }
> > >
> > > the method to check if there is an appender with the name
> > > LogServer works
> > > well, but the start and stop don't seem to do anything.
> > >
> > > Even when I start up the socket appender in the 
> > log4j.properties (and
> > > lumbermill works properly), I can't get it to stop with my
> > > stop method. Any
> > > ideas?
> > >
> > > Thanks in advance,
> > >     Jesse Vitrone
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to