logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RB...@dtint.com
Subject RE: Acorn Progress
Date Wed, 09 Apr 2003 20:56:26 GMT
Should be a piece of cake to add.  Thanks!





Mark Womack <mwomack@bevocal.com>
04/09/2003 01:52 PM
Please respond to "Log4J Developers List"
 
        To:     'Log4J Developers List' <log4j-dev@jakarta.apache.org>
        cc: 
        Subject:        RE: Acorn Progress


Correct.

> -----Original Message-----
> From: RBair@dtint.com [mailto:RBair@dtint.com]
> Sent: Wednesday, April 09, 2003 11:31 AM
> To: Log4J Developers List
> Subject: RE: Acorn Progress
> 
> 
> Ah, wonderful.  So, if I understand correctly, plugins are 
> defined simply 
> in these config files, but they are not "attached" to loggers 
> or anything 
> else the way appenders are.  Right?
> 
> Thanks!
> Richard
> 
> 
> 
> 
> Mark Womack <mwomack@bevocal.com>
> 04/09/2003 11:45 AM
> Please respond to "Log4J Developers List"
> 
>         To:     'Log4J Developers List' <log4j-dev@jakarta.apache.org>
>         cc: 
>         Subject:        RE: Acorn Progress
> 
> 
> Richard,
> 
> Here is an example.  The current cvs dtd has been updated to 
> define the
> plugin elements.  Very similar to appenders, probably want to 
> implement
> their own "acorn gui configuration plugins" for the common plugin
> implementations.
> 
> -Mark
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="true">
> 
>     <appender name="A1" class="org.apache.log4j.FileAppender">
>         <param name="File"   value="output/filters.PluginsTest.txt" />
>         <param name="Append" value="false" />
> 
>         <layout class="org.apache.log4j.PatternLayout">
>             <param name="ConversionPattern" value="%d{ABSOLUTE} %c: 
> %m%n"/>
>         </layout>
>     </appender>
> 
>     <plugin name="SocketReceiver"
> class="org.apache.log4j.net.SocketReceiver">
>         <param name="Port" value="5000"/>
>     </plugin>
> 
>     <root>
>         <level value="debug"/>
>         <appender-ref ref="A1" />
>     </root>
> </log4j:configuration>
> 
> > -----Original Message-----
> > From: RBair@dtint.com [mailto:RBair@dtint.com]
> > Sent: Wednesday, April 09, 2003 10:17 AM
> > To: Log4J Developers List
> > Subject: RE: Acorn Progress
> > 
> > 
> > Dear me!  How are these going to be defined and configured? 
>  Are they 
> > configured in the normal xml file?  Do I deal with them in the same 
> > general way as appenders?
> > 
> > Richard
> > 
> > 
> > 
> > 
> > Mark Womack <mwomack@bevocal.com>
> > 04/09/2003 11:00 AM
> > Please respond to "Log4J Developers List"
> > 
> >         To:     'Log4J Developers List' 
> <log4j-dev@jakarta.apache.org>
> >         cc: 
> >         Subject:        RE: Acorn Progress
> > 
> > 
> > No.  Plugins are new to v1.3 and can be defined in the xml 
> > configuration
> > files.  Plugins are classes that can take action to 
> > affect/use/modify a
> > given logger repository.  For example, "receiver" are a type 
> > of plugin 
> > that
> > receives external/remote logging events and "posts" them to 
> the local 
> > logger
> > repository.  "watchdog" plugins will (when I get off my butt 
> > and write 
> > them)
> > "watch" a configuration source (file, url, socket, etc) and when it 
> > changes
> > reconfigure the repository with the new settings.
> > 
> > Similar to appenders, they can have their own configuration points.
> > Examples in the current cvs are SocketReciever, 
> SocketHubReceiver, and
> > JMSReceiver.
> > 
> > -Mark
> > 
> > > -----Original Message-----
> > > From: RBair@dtint.com [mailto:RBair@dtint.com]
> > > Sent: Wednesday, April 09, 2003 9:47 AM
> > > To: Log4J Developers List
> > > Subject: RE: Acorn Progress
> > > 
> > > 
> > > By "plugins" do you mean the configuration gui for user 
> > > defined appenders? 
> > >  I haven't tackled that piece yet. 
> > > 
> > > Richard
> > > 
> > > 
> > > 
> > > 
> > > Mark Womack <mwomack@bevocal.com>
> > > 04/08/2003 08:41 PM
> > > Please respond to "Log4J Developers List"
> > > 
> > >         To:     'Log4J Developers List' 
> > <log4j-dev@jakarta.apache.org>
> > >         cc: 
> > >         Subject:        RE: Acorn Progress
> > > 
> > > 
> > > Looks like a good start.  How about configuration for plugins?
> > > 
> > > -Mark
> > > 
> > > > -----Original Message-----
> > > > From: Richard Bair [mailto:rbair23@yahoo.com]
> > > > Sent: Tuesday, April 08, 2003 10:43 AM
> > > > To: log4j
> > > > Subject: Acorn Progress
> > > > 
> > > > 
> > > > Hey Everyone,
> > > > 
> > > > I'm sure not getting much time to work on this, but
> > > > slow and steady wins the race, right? :-)
> > > > 
> > > > Attached is a screenshot of where I'm at right now. 
> > > > You can see the basic idea.  I think using a JList
> > > > like this is a little unconventional, but I didn't
> > > > like the idea of using two JLists etc.  Just playing
> > > > around a little bit there.
> > > > 
> > > > Also, I'm reading XML config files just fine here. 
> > > > Its really a suprisingly compact piece of code so far.
> > > >  I still have a long way to go!
> > > > 
> > > > Sorry about the size/quality of that image, maybe its
> > > > time I download some better image product than Paint.
> > > > 
> > > > Cheers,
> > > > Richard
> > > > 
> > > > __________________________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - File online, calculators, forms, and more
> > > > http://tax.yahoo.com
> > > > 
> > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
> > > 
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message