donaldp 01/04/11 02:49:39 Modified: src/java/org/apache/log LogKit.java Log: Removed some archaic cruft. Revision Changes Path 1.5 +0 -62 jakarta-avalon-logkit/src/java/org/apache/log/LogKit.java Index: LogKit.java =================================================================== RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/LogKit.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- LogKit.java 2001/03/27 13:26:02 1.4 +++ LogKit.java 2001/04/11 09:49:38 1.5 @@ -7,12 +7,6 @@ */ package org.apache.log; -import java.io.File; -import java.lang.reflect.*; -import java.util.*; -import org.apache.log.output.*; -import org.apache.log.output.DefaultOutputLogTarget; - /** * The LogKit provides the access to static methods to * manipulate the logging sub-system @@ -23,62 +17,6 @@ { protected static final ThreadLocal c_context = new ThreadLocal(); protected static final LogEngine c_engine = new LogEngine(); - - /* - //Need to add this in at LogManager level rather than here .... - public static Logger createLogger(String name, URL destination, Priority.Enum priority) - { - - // create the new category. If it already exist return the cached one. - Category category = createCategory(name, priority ); - // create the new target. if already exist uses the chached one. - // the target name is destination based so if a caller ask for a - // log name but aiming to the same destination, the same target is used. - LogTarget logTarget = createLogTarget("" + destination, destination); - LogTarget logTargets[] = new LogTarget[] { logTarget }; - LogKit.createLogger( category, logTargets ); - return LogKit.getLoggerFor(name); - } - - private static LogTarget createLogTarget(String name, URL destination) { - - LogTarget logTarget = getLogTarget(name); - if (logTarget == null) { - String protocol = destination.getProtocol(); - String logTargetClassName = null; - - // bad hack here... need to read from Properties? - if (protocol.equals("file")) { - logTarget = new FileOutputLogTarget(); - } else if (protocol.equals("null")) { - logTarget = new NullOutputLogTarget(); - } else { - logTarget = new GenericOutputLogTarget(); -// logTarget = c_defaultLogTarget; -} -// if (protocol.equals("file")) { -// logTargetClassName = "FileOutputLogTarget"; -// } else if (protocol.equals("null")) { -// logTargetClassName = "NullOutputLogTarget"; -// } - -// if (logTargetClassName != null) { -// try { -// logTarget = (LogTarget) Class.forName( "org.apache.log.output." + logTargetClassName ).newInstance(); -// } catch(Exception e ) { -// logTarget = c_defaultLogTarget; -// } -// logTarget.setDestination(destination); -// } else { -// logTarget = c_defaultLogTarget; -// }/ -logTarget.setDestination(destination); -LogKit.addLogTarget( name, logTarget ); -} -return logTarget; -} - */ - /** * Retrieve the default log engine which all the static methods in LogKit deferr to. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]