* Home :: Get a random password :: Get a multi-word password :: What is my IP? (v4 | v6)
* My projects

How to enable DEBUG mode in Cloudstack

Tags: howto,cloudstack

Date: 20220414

Sometimes when working on a Cloudstack problem we need extra verbosity in the logs.

To set the logs to DEBUG level we need to change the log4j config file and restart the service.

In order to do this on a management server, these are the steps - obviously, if you have more than 1 management server, you need to do it on all of them.

sed -i 's/INFO/DEBUG/g' /etc/cloudstack/management/log4j-cloud.xml

service cloudstack-management restart

To do this on a hypervisor server, do the folloing. KVM only btw, no need to do anything if you use VMWare or Xen/XCP-ng.

sed -i 's/INFO/DEBUG/g' /etc/cloudstack/agent/log4j-cloud.xml

service cloudstack-agent restart

(c)The Nux(tm) ;-)

No CSS, no Javascript, no some HTML.
No ads, no tracking, no cookies.