10.2. Enabling Command Logging

Command logging is not enabled by default. To enable command logging, you add the <commandlog> element to the deployment file. For example:

<deployment>
   <cluster hostcount="4" sitesperhost="2" kfactor="1" />
   <commandlog enabled="true"/>
</deployment>

In its simplest form, the <commandlog/> tag enables command logging using the default configuration. You can use the enabled attribute to explicitly enable or disable the feature (as in the previous example), or you can add attributes and child elements to control specific characteristics of command logging. The following section describes those options in detail.