I'm writing new Extension code and want to log to a file for debugging purposes.
I've tried using the print() function to write to ~/.cache/gdm/session.log as explained here: http://codeisland.org/2013/making-gnome-shell-extensions/
This does not work. Does print() write elsewhere? Also, I see that other extensions use log(). Where can I view the output of that?
Is any of this documented anywhere?