17

Where can I find firefox log file on Centos 6?

Unfortunately, firefox doesn't write its log in /var/log/message .

3
  • 1
    Why do you need the logs? Firefox doesn't produce logfiles by default.
    – Braiam
    Jan 20, 2015 at 1:53
  • @Braiam to know how the most resource consuming process of machine is going. If there is anything I should pay attention to. Don't know, will be sure if there is something to care about just after see it.
    – wviana
    Mar 25, 2022 at 15:11
  • @wviana for that you don't use logs, you use software monitoring like top, ntop, iotop, etc. After you identify the culprit, then you start poring through other information that the application can produce. I will not be surprised that an application is trashing the disk if it's writing verbose logs to it instead of using the syslog facility.
    – Braiam
    Mar 25, 2022 at 18:12

2 Answers 2

4

firefox writes to the session log;
on older systems (pre-systemd) that's saved in ~/.xsession-errors so try running:

grep firefox ~/.xsession-errors

on newer, systemd-based setups you can view (as a user) the relevant entries in the journal with:

journalctl -qb /usr/bin/firefox
1
  • been -q for quiet and -b to show only current boot. But completition doen't even offer to complete the last argument as a path. Couldn't success with journalctl command mentioned in this answer. Maybe there is something to enable on firefox about:config page, so it does log into journalctl?
    – wviana
    Mar 25, 2022 at 15:09
0

I guess that by "firefox log" you mean all temporary files created by firefox, so have a look at directory ~/.mozilla/firefox. You may find there subdirectories with cache, "Crash Reports", but also many configuration files (for example profiles.ini).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .