GNOME Bugzilla – Bug 695444
Use standard logging
Last modified: 2013-03-08 16:12:09 UTC
In the current gnome-ostree, tracker is pretty much alone in putting its own log files in ~/.local/share/tracker. It should stop doing this, and just write to stdout, which will be attached to whatever the system is using for logging.
Hi Colin, is there a policy or wiki page to follow for this? I didn't think there was a policy for logging. We're happy to accommodate in most cases, but I would like to know why? :) Also, we're not just a GNOME project, we're a freedesktop project hosted on GNOME servers. So we try to be agnostic. Still, I am conformist at the best of times so... :) Changing this btw, would be really easy. We would still keep the logging as a feature for those that want it because it's been incredibly useful in bug reporting and fixing issues.
(In reply to comment #1) > I didn't think there was a policy for logging. We're happy to accommodate in > most cases, but I would like to know why? :) I'm not aware of any documentation/policy on this. But quite simply, tracker is a unique snowflake here. For gnome-ostree at least, I have things set up now so *everything*, including what was formerly in ~/.xsession-errors goes to the systemd journal, and it's quite nice. Would you take a configure option?
Fixed in master. This should be in 0.15.3 and 0.16.0. commit 5ed0bbc68e356d924198790e19cbf22d6a5ff8f0 Author: Martyn Russell <martyn@lanedo.com> Date: Fri Mar 8 15:42:42 2013 +0000 libtracker-common: Don't log to file by default, only stdout/stderr This is actually only useful for debugging anyway and can be switched on again by starting tracker processes by setting the environment variable TRACKER_USE_LOG_FILES before starting each process. Log files can still be found in either ~/.xsession-errors, ~/.cache/gdm/session.log or systemd journals depending on the system. https://bugzilla.gnome.org/show_bug.cgi?id=695444