2012/5/31 Mariano Martinez Peck <marianopeck@gmail.com>
On Thu, May 31, 2012 at 11:50 AM, Guillermo Polito < guillermopolito@gmail.com> wrote:
On Thu, May 31, 2012 at 9:21 AM, Santiago Bragagnolo < santiagobragagnolo@gmail.com> wrote:
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)
what do you mean by PID? Smalltalk processes do not have a PID. You could use identityHash but it could not even be unique. or is it the PID of the process running the VM?
*Yeah, is the Process identityHash! I called pid cause i get the logic from Zn logger. (as even the file writer and the stdout writter :) ). Must i call it PIH? Can i get the PID? is needed the pid in a log?*
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)
would be awesome to have the possibility to log into stdout also.
-- Mariano http://marianopeck.wordpress.com