For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > November 2006 > accessing the system transcript









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author accessing the system transcript
Emanuel Blaser

2006-11-10, 8:04 am

Hi, can anyone tell me how I can access the System Transcript? I want
to add it to a support file.

I'm using ObjectStudio 7.1

Thanks a lot
Emanuel Blaser

Christof Handirk

2006-11-14, 4:10 am

Hi Emanuel,

SystemTranscript is a global variable.

You can do something like
'SystemTranscript open.'
in the workspace.

I am not sure what you mean by


Christof


Emanuel Blaser schrieb:[color=darkred]
> Hi, can anyone tell me how I can access the System Transcript? I want
> to add it to a support file.
>
> I'm using ObjectStudio 7.1
>
> Thanks a lot
> Emanuel Blaser
>


Emanuel Blaser

2006-11-14, 8:02 am


Christof Handirk schrieb:

> Hi Emanuel,
>
> SystemTranscript is a global variable.


Thats the Form of the System Transcript, I want to read the messages
that appear in the Form. It seems that you can`t read them. What I
found was, that you can start Object Studio with the parameter
-o[textfile] and it writes the transcript into a file - but thats slow.
[color=darkred]
> You can do something like
> 'SystemTranscript open.'
> in the workspace.
>
> I am not sure what you mean by

When I get a debugger I create a support file with all of the
environment variables and the last SQL`s and so on... My goal is to add
also the System Transcript to it. That seemed very easy to me but it`s
not.


Thanks anyway for your help
Emanuel

Tim M

2006-11-15, 4:01 am

Hi Emanuel,

> When I get a debugger I create a support file with all of the
> environment variables and the last SQL`s and so on... My goal is to
> add also the System Transcript to it. That seemed very easy to me but
> it`s not.


I'm not using VW but I think it would work the same way as Dolphin - I think
the bit you are after is the following:

Transcript class.

Evaluate that and find out what kind of object your transcript is - in Dolphin
its a TranscriptShell - so you can then browse that object and see what kinds
of things it can do. In Dolphin (and possibly this is ansi standard there
is #contents).

If you devaluate:

Transcript contents.

You should get the contents of the Transcript, which you manipulate any way
you want - in your case append it to your support file.

Tim


Andrew McNeil

2006-11-15, 4:01 am


Emanuel Blaser wrote:
> Hi, can anyone tell me how I can access the System Transcript? I want
> to add it to a support file.
>
> I'm using ObjectStudio 7.1
>
> Thanks a lot
> Emanuel Blaser


If you want to record everything that is logged to the transcript in a
file use the -o option on the command line. For example:

ostudio -iostudio.img -omessages.log

Paul Wallimann

2006-11-15, 7:05 pm

Hi Emanuel,

I don't have ObjectStudio available at the moment so the following is from
the top of my head... Anyway, maybe you can solve your problem by
overriding String>>out. As far as I remember this is a primitive method so
you will not see any code there but still you can write your own version of
this method and store it in a secondary file. This way we have created our
own custom Transcript window (but no development menu entries, i.e. we can
even show it to our end users) and it works fine this way apart from some
messages that still appear in the original Transcript Window (e.g. when you
save a method that has undefined local variables in it).

Hope this helps,
Paul


Emanuel Blaser wrote:

>
> Christof Handirk schrieb:
>
>
> Thats the Form of the System Transcript, I want to read the messages
> that appear in the Form. It seems that you can`t read them. What I
> found was, that you can start Object Studio with the parameter
> -o[textfile] and it writes the transcript into a file - but thats slow.
>
>
> When I get a debugger I create a support file with all of the
> environment variables and the last SQL`s and so on... My goal is to add
> also the System Transcript to it. That seemed very easy to me but it`s
> not.
>
>
> Thanks anyway for your help
> Emanuel


Emanuel Blaser

2006-11-16, 8:03 am

Hi Paul,

thanks a lot for your help.

Overriding out was finally our solution too.

Thanks too for your help reading the programStack, found the code
example in your Forum! We are now able to even advance the Transcript
by adding dynamic the sender class- and methodname.

Greetings
Emanuel

Paul Wallimann schrieb:

> Hi Emanuel,
>
> I don't have ObjectStudio available at the moment so the following is from

far as I remember this is a primitive method so[color=darkred]
> you will not see any code there but still you can write your own version of
> this method and store it in a secondary file. This way we have created our
> own custom Transcript window (but no development menu entries, i.e. we can
> even show it to our end users) and it works fine this way apart from some
> messages that still appear in the original Transcript Window (e.g. when you
> save a method that has undefined local variables in it).
>
> Hope this helps,
> Paul
>
>
> Emanuel Blaser wrote:
>

Emanuel Blaser

2006-11-16, 8:03 am

Hi Paul,

thanks a lot for your help.

Overriding out was finally our solution too.

Thanks too for your help reading the programStack! We are now able to
even advance the Transcript by adding dynamic the sender class- and
methodname.

Greetings
Emanuel

Paul Wallimann schrieb:
[color=darkred]
> Hi Emanuel,
>
> I don't have ObjectStudio available at the moment so the following is from
> the top of my head... Anyway, maybe you can solve your problem by
> overriding String>>out. As far as I remember this is a primitive method so
> you will not see any code there but still you can write your own version of
> this method and store it in a secondary file. This way we have created our
> own custom Transcript window (but no development menu entries, i.e. we can
> even show it to our end users) and it works fine this way apart from some
> messages that still appear in the original Transcript Window (e.g. when you
> save a method that has undefined local variables in it).
>
> Hope this helps,
> Paul
>
>
> Emanuel Blaser wrote:
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com