public void emitLogMessage(RequestContext ctx, String logString, String logLevel, Long timeStamp, TimeConstraints timeConstraints) throws SimpleException {
// Set the request log extension using the operation params
ctx.setRequestLogExtension(new BaselineLogExtension(logString, null, null));
// Construct an instance of the event to be emitted
LogMessage lm = new LogMessage();
LogMessageContainer body = new LogMessageContainer();
lm.setBody(body);
// Add the neccessary parameters
body.setLogString(logString);
body.setLogLevel(logLevel);
body.setTimeStamp(timeStamp);
try {
// Create a new global execution observer variable for each event and call OnResult() passing the event instance just created
logMessageObserver.onResult(new ExecutionResult(lm));
} catch (Throwable ex) {
LOGGER.log(Level.SEVERE, "An exception occurred emitting the inputted message event:", ex);