[Seaside] Question on using Toothpick - the logging tool
stephane ducasse
stephane.ducasse at free.fr
Sat Mar 29 16:34:51 UTC 2008
hi guys
may be contact joseph. I'm forwarding his email when I mentioned the
problem to him.
I do not know who ported toothpick to squeak but contact joseph he is
cool.
jpelrine at metaprog.com
Stef
Hi Stef,
Thanks for sending me this. I'll look at the code later this weekend.
FYI - I don't know anything about the Squeak port of toothpick and
its' problems. I've NEVER been contacted by anyone about it. This is
the first mail I've ever seen.
On Mar 29, 2008, at 3:07 AM, Squeaker wrote:
> I using Toothpick (for the first time) to do my logging. I am using
> the FileLogger and what I want to do is to log all messages to a file.
>
> What I observe is that only the last log message is written to the
> file (in the Windows world). A bit of browsing the code reveals that
> the stream pointer is not set to the end of the file.
>
> I "fixed" the method FileLogger>>flush to be as follows:
>
> 1 flush
> 2 buffer position == 0 ifFalse: [
> 3 mutex critical: [
> 4 self stream setToEnd;
> 5 nextPutAll: buffer contents;
> 6 flush;
> 7 close.
> 8 buffer reset]]
>
> with me adding the "setToEnd;" on line 4.
>
> When I tested this change it does what I want and logs all messages
> to the file.
>
> My question: is this a proper fix or have I missed something?
>
> Thanks,
> Frank
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list