[Spice-devel] log file for spice-gtk
Daniel P. Berrange
berrange at redhat.com
Thu Mar 15 03:43:13 PDT 2012
On Thu, Mar 15, 2012 at 12:39:13PM +0200, Alon Levy wrote:
> On Thu, Mar 15, 2012 at 10:23:28AM +0000, Daniel P. Berrange wrote:
> > On Thu, Mar 15, 2012 at 11:14:15AM +0200, Yonit Halperin wrote:
> > > Hi,
> > >
> > > Are there any plans to have a log file for spice-gtk?
> > > I think that it is very important to have logging with configurable
> > > debug level via a configuration file. It will be helpful for live
> > > debugging of user problems that are hard to reproduce.
> > >
> > > I also saw there was some discussion about .spicec directory. It is
> > > used by the old client for logs and also for holding the certificate
> > > files. (In windows machine it is in %APPDATA%/spicec)
> > IMHO libraries have no business creating logfiles of their own
> > accord. It should be entirely in the control of applications
> > using the libraries to decide on logging policy.
> > For virt-viewer you can enable debugging of various areas with
> > flags --spice-gtk-debug, --gtk-vnc-debug and --debug. There are
> > also env variables which can control logging in newer GLib
> > versions
> OK, so I think there is place to make remote-viewer produce a log file
> by default.
> 1. For any hard to reproduce error there will be a log file by default.
> 2. Users who were used to spicec.log will have a remote-viewer.log
> I haven't noticed any easy way to set a fd different then stderr for
> debugging output though, maybe someone can help?
IIUC, you have to write & set a custom log handler function
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the Spice-devel