ILoggerFactory instances manufacture Logger instances by name. Most users retrieve Logger instances through the static LoggerFactory#getLogger(String) method. An instance of this interface is bound internally with LoggerFactory class at compile time.
| 36 | * @author Ceki Gülcü |
| 37 | */ |
| 38 | public interface ILoggerFactory { |
| 39 | |
| 40 | /** |
| 41 | * Return an appropriate {@link Logger} instance as specified by the |
| 42 | * <code>name</code> parameter. |
| 43 | * |
| 44 | * <p>If the name parameter is equal to {@link Logger#ROOT_LOGGER_NAME}, that is |
| 45 | * the string value "ROOT" (case insensitive), then the root logger of the |
| 46 | * underlying logging system is returned. |
| 47 | * |
| 48 | * <p>Null-valued name arguments are considered invalid. |
| 49 | * |
| 50 | * <p>Certain extremely simple logging systems, e.g. NOP, may always |
| 51 | * return the same logger instance regardless of the requested name. |
| 52 | * |
| 53 | * @param name the name of the Logger to return |
| 54 | * @return a Logger instance |
| 55 | */ |
| 56 | public Logger getLogger(String name); |
| 57 | } |
no outgoing calls
no test coverage detected