Smarts: Where does the Smarts Java API write its log files?
search cancel

Smarts: Where does the Smarts Java API write its log files?

book

Article ID: 327660

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


Where does the Smarts Java API write its log files?


Environment

VMware Smart Assurance - SMARTS

Resolution

The Java API SDK is an interface to the same Smarts Foundation code the Smarts console uses, and the console does all its own logging. The console logs its information based on the parameter -Dcom.smarts.java.log=<filename>. This parameter specifies the name of the file in the <SM_WRITEABLE>\logs area for the console to write the logged information. The setting Java Message Log. -Dcom.smarts.server.logMessages=true causes the console to write information about asynchronous messages received from servers to a file serverMesg_ in the same directory. 

If you are using the Java client code to interact with a domain manager, by default the log is under the DM install directory in local/logs. Specifying -Dcom.smarts.debugConnection=true allows you to log requests from clients connecting to a domain server.