vSphere includes several logs, which you can access and customize. You can also use the DiagnosticManager service interface for troubleshooting.