[GEARPUMP-345] Add getLogger(Class <?>) implementation for Java

Author: Buddhi Ayesha <buddhiayesha.13@cse.mrt.ac.lk>

Closes #224 from buddhiayesha2015/master.
diff --git a/core/src/main/scala/org/apache/gearpump/util/LogUtil.scala b/core/src/main/scala/org/apache/gearpump/util/LogUtil.scala
index 98850a8..d38b61b 100644
--- a/core/src/main/scala/org/apache/gearpump/util/LogUtil.scala
+++ b/core/src/main/scala/org/apache/gearpump/util/LogUtil.scala
@@ -67,6 +67,11 @@
     }
   }
 
+  /** getLogger(Class) implementation for Java */
+  def getLogger[T](clazz: Class[T]): Logger = {
+    LoggerFactory.getLogger(clazz.getSimpleName)
+  }
+
   /** Custom the log file locations by reading config from system properties */
   def loadConfiguration(config: Config, processType: ProcessType.ProcessType): Unit = {
     // Set log file name