Skip to content

Commit

Permalink
Added new getLogger method to get new instance of logger for Class ob…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
gpor0 committed Oct 23, 2019
1 parent 00175b9 commit 1dce231
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 1dce231

Please sign in to comment.