We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

How can I view *.log file in firefox?

  • 11 àwọn èsì
  • 1 ní ìṣòro yìí
  • 20 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ 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.

All Replies (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.