/** * Adds a log target to this facility. Log targets get informed, via the * LogTarget interface, whenever a message is logged with this class. * * @param target the target. */ public synchronized void addTarget(final LogTarget target) { super.addTarget(target); // as soon as there is a real log target added, we do no longer need // the default logging. This was only installed to be able to send messages // if the deepest basic logging failed. if (target != DEFAULT_LOG_TARGET) { removeTarget(DEFAULT_LOG_TARGET); } }
/** * Adds a log target to this facility. Log targets get informed, via the * LogTarget interface, whenever a message is logged with this class. * * @param target the target. */ public synchronized void addTarget(final LogTarget target) { super.addTarget(target); // as soon as there is a real log target added, we do no longer need // the default logging. This was only installed to be able to send messages // if the deepest basic logging failed. if (target != DEFAULT_LOG_TARGET) { removeTarget(DEFAULT_LOG_TARGET); } }
/** * Adds a log target to this facility. Log targets get informed, via the * LogTarget interface, whenever a message is logged with this class. * * @param target the target. */ public synchronized void addTarget(final LogTarget target) { super.addTarget(target); // as soon as there is a real log target added, we do no longer need // the default logging. This was only installed to be able to send messages // if the deepest basic logging failed. if (target != DEFAULT_LOG_TARGET) { removeTarget(DEFAULT_LOG_TARGET); } }
/** * Initializes the log system after the log module was loaded and a log target * was defined. This is the second step of the log initialisation. */ public void init() { removeTarget(DEFAULT_LOG_TARGET); final String logLevel = LogConfiguration.getLogLevel(); if (logLevel.equalsIgnoreCase("error")) { setDebuglevel(LogTarget.ERROR); } else if (logLevel.equalsIgnoreCase("warn")) { setDebuglevel(LogTarget.WARN); } else if (logLevel.equalsIgnoreCase("info")) { setDebuglevel(LogTarget.INFO); } else if (logLevel.equalsIgnoreCase("debug")) { setDebuglevel(LogTarget.DEBUG); } }
/** * Initializes the log system after the log module was loaded and a log target * was defined. This is the second step of the log initialisation. */ public void init() { removeTarget(DEFAULT_LOG_TARGET); final String logLevel = LogConfiguration.getLogLevel(); if (logLevel.equalsIgnoreCase("error")) { setDebuglevel(LogTarget.ERROR); } else if (logLevel.equalsIgnoreCase("warn")) { setDebuglevel(LogTarget.WARN); } else if (logLevel.equalsIgnoreCase("info")) { setDebuglevel(LogTarget.INFO); } else if (logLevel.equalsIgnoreCase("debug")) { setDebuglevel(LogTarget.DEBUG); } }
/** * Initializes the log system after the log module was loaded and a log target * was defined. This is the second step of the log initialisation. */ public void init() { removeTarget(DEFAULT_LOG_TARGET); final String logLevel = LogConfiguration.getLogLevel(); if (logLevel.equalsIgnoreCase("error")) { setDebuglevel(LogTarget.ERROR); } else if (logLevel.equalsIgnoreCase("warn")) { setDebuglevel(LogTarget.WARN); } else if (logLevel.equalsIgnoreCase("info")) { setDebuglevel(LogTarget.INFO); } else if (logLevel.equalsIgnoreCase("debug")) { setDebuglevel(LogTarget.DEBUG); } }