Page 1 of 1

log file opens automatically when it is focussed

Posted: 19 Nov 2006 17:06
by Tamil
In preview mode, log file opens automatically when it is focused. Double click on it opens in associated editor.

Re: log file opens automatically when it is focussed

Posted: 19 Nov 2006 17:20
by admin
log file? Give me more words, please.

Re: log file opens automatically when it is focussed

Posted: 19 Nov 2006 17:37
by Tamil
admin wrote:log file? Give me more words, please.
File with log extension.

Posted: 19 Nov 2006 18:17
by jacky
Not sute if this is the case here, but if IE is configured to have *.log files to be automatically opened with notepad (for example) instead of viewed within IE, clicking on a LOG file while having the Preview Tab on would automatically have the file opened in the notepad, as its the expected behavior (since XY "opens"/preview the file through IE).

Note that, how you configure this IE behavior, just like whether or not it should pop up the Open/Download window when clicking on files it kind of a mystery to me; I'm just glad it always pops up that window and never tried anything that could risk me to loose/change this behavior :oops:

Posted: 20 Nov 2006 07:41
by admin
jacky wrote:Note that, how you configure this IE behavior, just like whether or not it should pop up the Open/Download window when clicking on files it kind of a mystery to me...
To me, too! Still waiting for enlightment...

Posted: 20 Nov 2006 13:21
by RalphM
Just FYI those files open in Notepad on my sys as well.
I'm pretty sure this didn't happen a while ago with previous betas. Just not sure how far back this was.

Posted: 20 Nov 2006 13:53
by lukescammell
Same here...

Posted: 20 Nov 2006 14:53
by admin
RalphM wrote:Just FYI those files open in Notepad on my sys as well.
I'm pretty sure this didn't happen a while ago with previous betas. Just not sure how far back this was.
For some reason your browser is configured to download or open-with-associated this file type, and confirmation is turned off. The latter you can adjust in the file types (extension LOG) config that you find in Explorer/Tools/Folder Options (or similar -- I only have the German version here). The former I think has to do with MIME-types, but the details are a mystery to me.

Posted: 20 Nov 2006 17:45
by admin
(A) Okay, I found the way. Note: I do not say it's good, but it works. You care for yourself.

Open Registry.
Goto HKEY_CLASSES_ROOT\.log
Add a new key of type string, and call it "Content Type".
Set it to this value: text/plain

By this you tell your browser that it shall treat LOG files as simple text files and open them (instead of downloading them).

(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:

Posted: 20 Nov 2006 17:55
by jacky
admin wrote:(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:
hmm.. not sure I get your logic here. I mean ok XY is portable, but why remove LOG files from previewed formats? Or, why LOG only and not TXT files aswell?? One could have its IE configured to open with automatically with notepad instead of within IE aswell, no?
Besides, if you go there.. why not remove ALL that goes through IE, as it will alway depend on the PC XY is running on for all those formats (HTM, DOC, PDF, XLS, etc) ??

Besides, one can just uncheck *.log on the Config window (as I did for example ;)) so they get previewed as Raw View in XY. You want it to go through IE you can, you don't you can aswell, isn't everyone happy that way? Why change it? :roll:

Posted: 20 Nov 2006 18:06
by Tamil
admin wrote:I will remove LOG files from previewed formats!
Uncheck it instead of removing.

Posted: 20 Nov 2006 20:24
by admin
jacky wrote:
admin wrote:(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:
hmm.. not sure I get your logic here. I mean ok XY is portable, but why remove LOG files from previewed formats? Or, why LOG only and not TXT files aswell?? One could have its IE configured to open with automatically with notepad instead of within IE aswell, no?
Besides, if you go there.. why not remove ALL that goes through IE, as it will alway depend on the PC XY is running on for all those formats (HTM, DOC, PDF, XLS, etc) ??

Besides, one can just uncheck *.log on the Config window (as I did for example ;)) so they get previewed as Raw View in XY. You want it to go through IE you can, you don't you can aswell, isn't everyone happy that way? Why change it? :roll:
The point is: the other file types you mention usually have the "Content Type" key set in the registry. LOG files apparently not! Prove me wrong. :P

I'm not even sure if *.log is a definite file format, or rather a semantic suffix telling that this file does log something in whatever format (maybe even binary). So it might be even dangerous to open them in IE.

Posted: 21 Nov 2006 03:13
by j_c_hallgren
I just searched for all the .LOG files on my W2K sys...found about 300...did a quick raw view of them...almost all showed as Ascii-DOS, with a few as Unicode-DOS, Ascii-Mac/DOS or empty or in-use, but there were about a half-dozen that were definitely binary! So I think that .LOG is whatever the application wants to format it as, with most being a text style but not required to be...

Posted: 21 Nov 2006 07:22
by admin
j_c_hallgren wrote:I just searched for all the .LOG files on my W2K sys...found about 300...did a quick raw view of them...almost all showed as Ascii-DOS, with a few as Unicode-DOS, Ascii-Mac/DOS or empty or in-use, but there were about a half-dozen that were definitely binary! So I think that .LOG is whatever the application wants to format it as, with most being a text style but not required to be...
Thank you, that's exactly what I gathered.