How can I view *.log file in firefox?
I have a *.log file on my computer that I have linked to in a webpage (html). When I click on the link I would like it to open in the Firefox window where I clicked it.
Opaite Mbohovái (11)
The .log file itself is probably plain text. Could you explain the part about how it is linked with an HTML file, and how you want to load it?
(Firefox has some restrictions on pages you load using http: or https: interacting with content that needs to be retrieved using file:, so that might be relevant, depending on what you're trying to do.)
Yes, the log file is plain text. It is in an html page that is created through a script. The code that calls the log file is:
Output Results
RUNDOC
- <a href="../../../doc/ipgen/rundocs/tra_trafford_afe_IPTOP.gen.mw.log">tra_trafford_afe_IPTOP.gen.mw.log</a>
Thanks.
What currently happens when you click that link?
It was asking if I'd like to download, or open using (empty pulldown menu). Now it opens new windows endlessly.
New "tabs", specifically.
Okay, you can resolve the endless tabs issue by disassociating .log files with Firefox. See: Firefox repeatedly opens empty tabs or windows after you click on a link.
What is the nature of the file contents? Just plain text?
Thanks, I fixed that, hopefully. The file is strictly text.
If you were using Windows, I think .log would be understood to be a plain text file. I don't know how to configure that on Linux, or whether Firefox looks to such settings on Linux.
I apologize if this is a simplistic suggestion, but could you rename the .log files with a .txt extension?
No, I can't rename the file, or edit the webpage linking it.
Thanks for trying.
What application opens the .log file if you launch it by double-clicking, if your system has that kind of behavior?
To view a text file in Firefox where Firefox doesn't seem to recognize the file as a text file you can prefix the link URL with the view-source: protocol.