[Pharo-project] [Pharo-users] [ANN] Continue working in SimpleLogger

Stéphane Ducasse stephane.ducasse at inria.fr
Thu Oct 21 04:03:24 EDT 2010


come on tooth pick has even documentation and it does not look complex.
redoing all over things does not reduce bugs and 

http://www.metaprog.com/Toothpick/docs/quickstart.html
It looks clean and simple.



Stef

On Oct 21, 2010, at 9:51 AM, Mariano Martinez Peck wrote:

> 
> 
> On Thu, Oct 21, 2010 at 7:24 AM, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:
> why don;t you look look at toothpick?
> 
> 
> Because I don't have time to learn a new logging framework, nor to make it work on Pharo. I don't plan to be part of a logging framework. I just needed something really EASY for my projects. So, I remembered Germán doing that, I know it was working in Pharo, and it took me 5 minutes to understand. 2 hours more to add my features, and that's all :)  I just make it public for other users.
> 
> Chees
> 
> Mariano
>  
> 
> On Oct 21, 2010, at 3:23 AM, Yanni Chiu wrote:
> 
> > On 20/10/10 9:36 AM, Mariano Martinez Peck wrote:
> >> What I did basically is to define SimpleLogger like the public API. But
> >> then, this class delegates to a LoggerStrategy. I created the following
> >> implementations: TranscriptLoggerStrategy, NullLoggerStrategy,
> >> FileLoggerStrategy and FixesFileNameLoggerStrategy.  In addition, I
> >> created a superclass for them, marking the API with SimpleLogger. This
> >> class is LoggerStrategy.
> >>
> >> So, now you can:
> >>
> >> - Enable and disable easily the logging (thanks to NullLoggerStrategy).
> >> - Change on runtime WHERE or HOW to log (just change the strategy).
> >> - Be able to write into a File, a Transcript, a FixedFileName, or nothing.
> >> - Extend to you own strategy (FileAppendLoggerStrategy??
> >> SocketLoggerStrategy?  etc...)
> >
> > My 2cents. I've not used or looked at SimpleLogger, but recall that it was a single class, plus a metacello config class.
> >
> > The new functionality sounds very useful, but is it still simple. It sounds like it was simple to add extra features - maybe because SimpleLogger was simple. Will the next person who comes along find a similarly simple implementation that can be easily adapted to specific needs.
> >
> > A hierarchy of strategy classes no longer sounds simple. What if I don't need all the different strategies loaded, will the configuration then allow multiple build targets for various individual or groups of strategies. Starting to sound complicated.
> >
> > IMHO, it should be a fork: SomewhatSimpleOnItsWayToComplicatedLogging :)
> >
> > --
> > Yanni
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project at lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> 
> 
> _______________________________________________
> Pharo-users mailing list
> Pharo-users at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
> 
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project





More information about the Pharo-dev mailing list