Use the Logger API to set the log level and create log records on the client.
Logger logger = SUP101DB.getLogger(); // set log level to debug logger.setLogLevel(LogLevel.DEBUG); // create a log record with ERROR level and the error message. logger.error("Some error message");