org.apache.ws.jaxme.logging
public abstract class LoggerFactoryImpl extends Object implements LoggerFactory
Default implementation of a {@link LoggerFactory}. The default implementation holds an internal Map of Loggers.
Method Summary | |
---|---|
Logger | getLogger(String pName) Returns a {@link Logger} with the name |
abstract Logger | newLogger(String pName) Creates a new {@link Logger} with the given name. |
Returns a {@link Logger} with the name pName
.
If the internal {@link Map} of loggers already contains a {@link Logger}
with name pName
, returns that one. Otherwise creates
a new instance by calling {@link #newLogger(String)}, stores
the instance in the internal {@link Map} and returns it.
Creates a new {@link Logger} with the given name. The logger will be added to an internal {@link Map} and the next call to {@link #getLogger(String)} with the same name will return this {@link Logger}.