On Tue, Mar 20, 2012 at 11:12 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 21 March 2012 03:19, Guillermo Polito <guillermopolito@gmail.com> wrote:
> Because this:
>
> SmalltakImage>>openLog
> ��� "This is a _private_ method,
> ��� Because it really belongs to logging facility,
> ��� we should delegate to it at some point "
>
> ��� ^ ( FileStream fileNamed: Smalltalk tools debugger logFileName )
> ��� ��� wantsLineEndConversion: true;
> ��� ��� setToEnd;
> ��� ��� yourself
>
>
> Is ugly :)

yes.
now compare this with older code where 'PharoDebug.log' string were
directly used in multiple places.

I think it should be something like:

^ self tools log open

then we just register a tool - #log.. which responsible for logging..
anywhere it wants (to file/syslog whatever).


ok, but not debugger :D.

Transcript?

Then maybe we can start a Mud fight:

Transcript global var vs Smalltalk tools log

...� but It will surely not be as fun, he

>
> Guille



--
Best regards,
Igor Stasenko.