18 package testsuite.clusterj.util;
20 import com.mysql.clusterj.core.util.Logger;
21 import com.mysql.clusterj.core.util.LoggerFactory;
22 import com.mysql.clusterj.core.util.LoggerFactoryService;
24 import testsuite.clusterj.AbstractClusterJCoreTest;
29 String loggingPropertiesName = System.getProperty(
"java.util.logging.config.file");
30 if (loggingPropertiesName == null) {
31 fail(
"Logger properties file name is null");
33 File loggingPropertyFile =
new File(loggingPropertiesName);
34 if (!loggingPropertyFile.exists()) {
35 fail(
"File " + loggingPropertiesName +
" does not exist");
40 fail(
"Logger com.mysql.clusterj.core not found.");
42 boolean debugEnabled = logger.isDebugEnabled();
43 boolean traceEnabled = logger.isTraceEnabled();
44 boolean infoEnabled = logger.isInfoEnabled();
45 logger.debug(
"Debug here.");
46 logger.trace(
"Trace here.");
47 logger.info(
"Info here.");
48 logger.warn(
"Warn here.");
49 logger.error(
"Error here.");
50 logger.fatal(
"Fatal here.");