搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I view *.log file in firefox?

  • 11 个回答
  • 1 人有此问题
  • 20 次查看
  • 最后回复者为 cor-el

more options

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.

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.

所有回复 (11)

more options

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.)

more options

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.

more options

What currently happens when you click that link?

more options

It was asking if I'd like to download, or open using (empty pulldown menu). Now it opens new windows endlessly.

more options

New "tabs", specifically.

more options

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?

more options

Thanks, I fixed that, hopefully. The file is strictly text.

more options

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?

more options

No, I can't rename the file, or edit the webpage linking it.

Thanks for trying.

more options

What application opens the .log file if you launch it by double-clicking, if your system has that kind of behavior?

more options

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.