With my new stuff, there is a lower level function that might be more  
useful for you to override:

Debug.addText(str)

I suggest you make this call Rhino print.

If you want output to go to a file, I suggest you define:

_dbg_log_all_writes = true

And define Debug.log(str) to do your logging.

That way you will get _all_ the compiler warnings, etc.

Just define these in your app and they will override the LFC versions.

On 2006-04-14, at 16:48 EDT, Henry Minsky wrote:

> Is there something in Rhino that you could check for, which would  
> only be in
> the runtime, like if some global is bound?
>
> On 4/14/06, Benjamin Shine <[EMAIL PROTECTED]> wrote:
>>
>>
>> In rhino only, I want Debug.write to also call this code, to log
>> messages to a file:
>>          // Write the message out to a file
>>          lzjumReportWriter.write( s + "\n");
>>          lzjumReportWriter.flush();
>>
>> How do I do that without just redefining Debug.write?
>>
>>
>>
>> benjamin shine
>> software engineer
>> [EMAIL PROTECTED]
>>
>>
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>
>
>
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to