/** * Creates and returns a new <tt>Logger</tt> bound to the given * <tt>binding</tt> string using Platform's LoggerFactoryComponent. * * @param binding the <tt>java.lang.String</tt> to bind to * @return the <b>new</b> <tt>Logger</tt> instance */ static Logger getLogger(String binding) { return Holder.INST.defaultFactory.create(binding); }
/** * Sets the log level for Loggers that fits the initial path. Note that * class name are in the form "c.s.i.c.p.c.i.ConnectionPoolComponentImpl" * * @param path the start of the logger name that is to be changed * @param level the new log level */ static void setLevel(String path, Level level) { Holder.INST.defaultFactory.setLevel(path, level); }
/** * Creates and returns a new <tt>Logger</tt> bound to the given * <tt>binding</tt> type using * * @param binding the <tt>java.lang.Class</tt> to bind to * @return the <b>new</b> <tt>Logger</tt> instance */ static Logger getLogger(Class<?> binding) { return Holder.INST.defaultFactory.create(binding); }
/** * Sets the log level for the specified class logger. * * @param clazz of the class logger * @param level the new log level */ static void setLevel(Class<?> clazz, Level level) { Holder.INST.defaultFactory.setLevel(clazz, level); }
/** * Creates and returns a new <tt>Logger</tt> bound to the given * <tt>binding</tt> string using Platform's LoggerFactoryComponent. * * @param binding the <tt>java.lang.String</tt> to bind to * @return the <b>new</b> <tt>Logger</tt> instance */ static Logger getLogger(String binding) { return Holder.INST.defaultFactory.create(binding); }
/** * Sets the log level for Loggers that fits the initial path. Note that * class name are in the form "c.s.i.c.p.c.i.ConnectionPoolComponentImpl" * * @param path the start of the logger name that is to be changed * @param level the new log level */ static void setLevel(String path, Level level) { Holder.INST.defaultFactory.setLevel(path, level); }
/** * Creates and returns a new <tt>Logger</tt> bound to the given * <tt>binding</tt> type using * * @param binding the <tt>java.lang.Class</tt> to bind to * @return the <b>new</b> <tt>Logger</tt> instance */ static Logger getLogger(Class<?> binding) { return Holder.INST.defaultFactory.create(binding); }
/** * Sets the log level for the specified class logger. * * @param clazz of the class logger * @param level the new log level */ static void setLevel(Class<?> clazz, Level level) { Holder.INST.defaultFactory.setLevel(clazz, level); }