Hi again Im already add several classes to the logger.
http://ss3.gemstone.com/ss/PaulLePulp the way to use it still primitive, but is a nice draft. If you look at LogConfiguration configuration (class method) you'll find something like this self for:[ :builder | builder forClass:LogTestObject useLevel:#info showingLogAs: ('[%pid | %tstmp | %tag] #%class >> %selector' asPatternFormatter) into: Transcript asLogWriter retain:true. builder forKey:'default' useLevel:#error. ] then, with LogTestObject, if you send it "error", "warn" or "info", all you send there (blocks, strings, symbols or what-understand-value) will be showed at Transcript. (im didnt test on file or stdout yet) Finally retain:true adds the log to LogHolder, which responds to LogHolder instance select:[ :log | log whatYouWantToTest ]. Ill be testing tomorrow and fixing, but, if you want to see and advise me, you are welcome :) Ok, is 4am, im going to sleep 2012/5/30 Stéphane Ducasse <[email protected]> > I would like a logging mechanism that manipulate objects that then are > printed in various format. > The compiler could use such logger > > I did not look at the code of toothpick probably extending LoggingEvent > should do it. > > Stef > > > On May 30, 2012, at 3:41 PM, Santiago Bragagnolo wrote: > > > Ok, i'll take what i need from the marianito's and zn and fork them in > an other package, add what i need for massive loggin (like levels of > loggin) and make a log-framework. > > > > Any names? clairvoyant :3? > > > > Then, is any easy aspect fwk that could i use for the logger? (sometimes > i need just trace runtime, or i dont want to add a log line one by one) > that works in pharo 2.0 ? :P? > > > > > > 2012/5/30 Sven Van Caekenberghe <[email protected]> > > > > On 30 May 2012, at 01:56, Santiago Bragagnolo wrote: > > > > > Im looking for a log framework with configurable levels. Theres any > stable and useful? I browsed the list and didn't find nothing but > something like 'every body has its own logging framework'. > > > > > > I wrote a small logging fwk for my project, but if is any more > complete, it would be great. > > > > There is one logging framework already in your image: Zinc-HTTP-Logging. > > It is based on Announcments. Although it is part of Zn, it is general > purpose. > > What is special is that it logs the process ID as well, which is useful > to debug multiprocess applications. > > See the Zn documentation for more info. > > > > Sven > > > > > > > > >
