On Thu, May 31, 2012 at 11:50 AM, Guillermo Polito <
[email protected]> wrote:

> On Thu, May 31, 2012 at 9:21 AM, Santiago Bragagnolo <
> [email protected]> 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?



>
> 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

Reply via email to