* This method is only used for 1.x compatibility.
* Returns the parent of this Logger. If it doesn't already exist return a temporary Logger.
* @return The parent Logger.
*/
public Logger getParent() {
final LoggerConfig lc = config.loggerConfig.getName().equals(getName()) ? config.loggerConfig.getParent() :
config.loggerConfig;
if (lc == null) {
return null;
}
if (context.hasLogger(lc.getName())) {
return context.getLogger(lc.getName(), getMessageFactory());
}
return new Logger(context, lc.getName(), this.getMessageFactory());
}