VMware Cloud Director has different logging levels. The default logging configuration might not be sufficient for busy environments or for capturing events whilst troubleshooting. You might need to change the level of logging and even the sizes and number of files retained.
The VMware Cloud Director logs are located in the /opt/vmware/vcloud-director/logs/ directory.
The VMware Cloud Director log configuration file is located in the /opt/vmware/vcloud-director/etc/ directory. The name of the log configuration file is log4j.properties
.
If you customize the log4j.properties
log configuration file, before a VMware Cloud Director upgrade, you must make a copy of the log4j.properties
, and after the upgrade, manually insert any missing sections.
To improve your log retention and to ensure that the VMware Cloud Director logs are kept for a certain amount of time, consider using a syslog server.
Logging Level | Description |
---|---|
FATAL |
This level logs very severe error events that might cause the application to fail. |
ERROR |
This level logs error events that might still allow the application to continue running. |
WARN |
This level logs potentially harmful situations and warnings. |
INFO |
This level logs informational messages that highlight the progress of the application at a coarse-grained level. |
DEBUG |
This level logs informational events that are most useful to debug an application at a fine-grained level. |
TRACE |
This level logs informational events at a more fine-grained level than the DEBUG level logging. |
Prerequisites
Make a backup copy of the /opt/vmware/vcloud-director/etc/log4j.properties file.
Consider