Example - Logging Service Code

//do this once and it will be stored in the login environment to be used over and over, values are optional, they will just show as null in the log if you don't set them
loginEnv.setApplicationName("My Client Application");
loginEnv.setApplicationVersion("Client Version");
 
//do this every time you want to send a log to AIS
AISClientLogger.log(loginEnv, "Warn Log sent from Client to AIS Server",AISClientLogger.WARN);

In this example, the log entry in the AIS Server log would be:

AIS LOG REQUEST: --Level 2 --Application: My Client Application --Application Version: Client Version --User: jde --Device Name: javaclient --Log Message: Warn Log sent from Client to AIS Server