Actually, locationInfo could be directly thisContext as used by the log
facilities methods:
EsLogManagerClass class>>logEvents
....
index := (Time now asMilliSeconds rem: 6) + 1. "pseudo random number"
message := messages at: index. "pick a random message"
locationInfo := thisContext.
....
2013/12/28 Hernán Morales Durand <[email protected]>
> Do not have a copy of VAST or VisualSmalltalk now but this could make it:
>
> currentClassAndMethod
>
> ^Association
> key: self class name asString
> value: thisContext method selector
>
>
> Hernán
>
>
>
> 2013/12/28 dmacq <[email protected]>
>
>> What I posted before just gets the name of the process, not the name of
>> the
>> method that is currently executing. I don't know how to do that off the
>> top
>> of my head, but I will look into it this weekend.
>>
>> Suggestions welcome.
>>
>> Donald [|]
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Is-someone-working-with-Log4s-tp4732633p4732811.html
>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>
>>
>