public abstract class CallerLoggerUtil extends Object
| Constructor and Description |
|---|
CallerLoggerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getName(String name)
Returns full name for the caller class' logger.
|
static String |
getName(String name,
int level)
Returns full name for the caller class' logger.
|
public static String getName(String name)
name - name of the logger. In case of full name (it contains dots) same value is just returned.
In case of short names (no dots) the given name is prefixed by caller's class name and a dot.
In case of null the caller's class name is just returned.public static String getName(String name, int level)
name - name of the logger. In case of full name (it contains dots) same value is just returned.
In case of short names (no dots) the given name is prefixed by caller's class name and a dot.
In case of null the caller's class name is just returned.level - no of call stack levels to get the caller (0 means the caller of this method).Copyright © 2020 ZeroTurnaround. All rights reserved.