Skip to content

Commit

Permalink
Merge pull request #4 from gpor0/master
Browse files Browse the repository at this point in the history
New getLogger method to get new instance of logger for Class object
  • Loading branch information
cen1 authored Apr 9, 2020
2 parents ae3d153 + 1dce231 commit 6dfd921
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/src/main/java/com/kumuluz/ee/logs/LogManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
*/
public class LogManager {

/**
* Returns Logger instance. Use this method for retrieval of Logger instances in your code.
*
* @param clazz Class to log
* @return Logger instance
*/
public static <T> Logger getLogger(Class<T> clazz) {
return LogUtil.getInstance().getLogInstance(clazz.getName());
}

/**
* Returns Logger instance. Use this method for retrieval of Logger instances in your code.
*
Expand Down

0 comments on commit 6dfd921

Please sign in to comment.