Enabling debug logging

This article applies to the following product(s):

VNC
VNC Enterprise Edition
VNC Personal Edition

Both VNC Server and VNC Viewer have a built in log function, which by default logs basic auditing information. For support (and potentially other) purposes, you may want to enable debug logging, which will log every aspect of the connection.

Please note that these logs are only useful for debug purposes, as they contain too much information for every-day auditing purposes.

VNC

Windows

For both VNC Server and VNC Viewer, access the configuration, and navigate to the Expert tab. Under the Expert options, find the Log parameter and change the existing value of:

*:EventLog:0,Connections:EventLog:30

to

*:file:100,Connections:EventLog:30

Ensure that the C:\temp directory exists and is writeable on both the VNC Viewer and VNC Server computer. Logs will be created in:

Server: C:\temp\vncserver.log
Viewer: C:\temp\vncviewer.log

When you have finished debugging, change the value back to:

*:EventLog:0,Connections:EventLog:30

Mac OS X

For both VNC Server and VNC Viewer, access the configuration, and navigate to the Expert tab. Under the Expert options, find the Log parameter and enter the following data:

*:file:100

Logs will be created in:   

Server: /Library/Logs/vncserver-service.log (for VNC Server in Service Mode)
Viewer: ~/Library/Logs/vnc/vncviewer.log

When you have finished debugging, change the value back to:

*:file:30

UNIX/Linux

For both VNC Server and VNC Viewer, run the application with the -Log flag:

vncserver -Log=*:stderr:100
vncviewer -Log=*:stderr:100

Logs will be created in:  

Server: ~/.vnc/.log
        e.g. mypc.realvnc.com:6.log)


VNC Enterprise Edition/VNC Personal Edition

Windows

For both VNC Server and VNC Viewer, access the configuration, and navigate to the Expert tab. Under the Expert options, find the Log parameter and change the existing value of:

*:EventLog:0,Connections:EventLog:30

to

*:file:100,Connections:EventLog:30

Ensure that the C:\temp directory exists and is writeable on both the VNC Viewer and VNC Server computer. Logs will be created in:

Server: C:\temp\winvnc4.log
Viewer: C:\temp\vncviewer.log

When you have finished debugging, change the value back to:

*:EventLog:0,Connections:EventLog:30

Mac OS X

For both VNC Server and VNC Viewer, access the configuration, and navigate to the Expert tab. Under the Expert options, find the Log parameter and enter the following data:

*:file:100

Logs will be created in:   

Server: /Library/Logs/macvnc-service.log
Viewer: ~/Library/Logs/vnc/VNCViewer.log

When you have finished debugging, change the value back to:

*:file:30

UNIX/Linux

For both VNC Server and VNC Viewer, run the application with the -Log flag:

vncserver -Log=*:stderr:100
vncviewer -Log=*:stderr:100

Logs will be created in:  

Server: ~/.vnc/.log
        e.g. mypc.realvnc.com:6.log)


Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
19th of June, 2012

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue