comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Bridge Logging = OFF not working using the Java Bridge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Bridge Logging = OFF not working using the Java Bridge [message #90237] Thu, 12 February 2015 17:51 Go to next message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
I am trying to prevent IDL from writing jb_log_<pid>.txt files every time it start a new java bridge session. According the docs, I should be able to achieve this by setting

Bridge Logging = OFF

in the .idljavabrc file.

When I do this, the log files keep being created. I do know IDL is picking up the correct file, since I tried messing with

Log Location = <path>

and managed to get log files written to different places that I specified.

I tried setting the location blank

Log Location =

and the bridge using code seems to run fine and I can't find any log files anywhere (including in the default /tmp). This seems to achieve what I'm after but I'm nervous that perhaps they would be made and pile up somewhere that I hadn't thought to check in.
Re: Bridge Logging = OFF not working using the Java Bridge [message #90263 is a reply to message #90237] Sun, 15 February 2015 15:19 Go to previous messageGo to next message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
> Hi,
> I poked around in the code, and it looks like it tries to write the log file wherever the Java bridge is started from. I'm not sure where this might be. Perhaps you could throw in a command to print the current working directory, and that might give you a clue where the bridge is started?
> -Chris

Hi Chris, I'm just working from my home directory and there's no log files there.

The basic issue is that the documented Bridge Logging = OFF setting doesn't appear to do anything. For reference, I am using IDL 8.2 but the documentation I can find doesn't have version specific info. Was Bridge Logging = OFF added after 8.2??
Re: Bridge Logging = OFF not working using the Java Bridge [message #90264 is a reply to message #90263] Sun, 15 February 2015 16:47 Go to previous message
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
Another update, it appears that it is not so much leaving the log location blank that does the trick, e.g.

Log Location =

But just specifying any non-valid location, e.g.

Log Location = qwertyuiop

results in no log files being generated, but no adverse behaviour in the Java Bridge, i.e. it seems to fail silently when trying to make a log file. So this does appear to be a workaround for the failure of

Bridge Logging = OFF

to do what it is supposed to do.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help - generate bell shaped function
Next Topic: Different behavior of RESTORE and IDL_SaveFile::Restore ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:29:01 PDT 2025

Total time taken to generate the page: 0.00480 seconds