/** * Returns a convenient Log instance that wraps the current LogChute. * * @return A convenience Log instance that wraps the current LogChute. * @see RuntimeInstance#getLog() * @since 1.5 */ public static Logger getLog() { return ri.getLog(); }
/** * Returns a convenient Log instance that wraps the current LogChute. * * @return A convenience Log instance that wraps the current LogChute. * @see RuntimeInstance#getLog() * @since 1.5 */ public static Log getLog() { return ri.getLog(); }
/** * Returns a convenient Log instance that wraps the current LogChute. * Use this to log error messages. It has the usual methods you'd expect. * @return A log object. * @since 1.5 */ public Log getLog() { return ri.getLog(); }
/** * Returns a convenient Log instance that wraps the current LogChute. * Use this to log error messages. It has the usual methods you'd expect. * @return A log object. * @since 1.5 */ public Logger getLog() { return ri.getLog(); }
/** * Returns a convenient Log instance that wraps the current LogChute. * * @return A convenience Log instance that wraps the current LogChute. * @see RuntimeInstance#getLog() * @since 1.5 */ public static Log getLog() { return ri.getLog(); }
/** * Returns a convenient Log instance that wraps the current LogChute. * Use this to log error messages. It has the usual methods you'd expect. * @return A log object. * @since 1.5 */ public Log getLog() { return ri.getLog(); }
/** * @deprecated Use getLog() and call error() on it. * @see Log#error(Object) * @param message The message to log. */ public void error(Object message) { getLog().error(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call warn() on it. * @see Log#warn(Object) * @param message The message to log. */ public void warn(Object message) { getLog().warn(message); }
/** * @deprecated Use getLog() and call info() on it. * @see Log#info(Object) * @param message The message to log. */ public void info(Object message) { getLog().info(message); }
/** * @deprecated Use getLog() and call debug() on it. * @see Log#debug(Object) * @param message The message to log. */ public void debug(Object message) { getLog().debug(message); }
/** * @deprecated Use getLog() and call error() on it. * @see Log#error(Object) * @param message The message to log. */ public void error(Object message) { getLog().error(message); }
/** * @deprecated Use getLog() and call warn() on it. * @see Log#warn(Object) * @param message The message to log. */ public void warn(Object message) { getLog().warn(message); }
/** * @deprecated Use getLog() and call debug() on it. * @see Log#debug(Object) * @param message The message to log. */ public void debug(Object message) { getLog().debug(message); }
/** * Init or die! (with some log help, of course) */ private void requireInitialization() { if (!initialized) { try { init(); } catch (Exception e) { getLog().error("Could not auto-initialize Velocity", e); throw new RuntimeException("Velocity could not be initialized!", e); } } }
/** * Creates a new RuntimeInstance object. */ public RuntimeInstance() { /* * create a VM factory, introspector, and application attributes */ vmFactory = new VelocimacroFactory( this ); /* * make a new introspector and initialize it */ introspector = new Introspector(getLog()); /* * and a store for the application attributes */ applicationAttributes = new HashMap(); }
/** * Creates a new RuntimeInstance object. */ public RuntimeInstance() { /* * create a VM factory, introspector, and application attributes */ vmFactory = new VelocimacroFactory( this ); /* * make a new introspector and initialize it */ introspector = new Introspector(getLog()); /* * and a store for the application attributes */ applicationAttributes = new HashMap(); }
/** * Init or die! (with some log help, of course) */ private void requireInitialization() { if (!initialized && !initializing) { log.debug("Velocity was not initialized! Calling init()..."); try { init(); } catch (Exception e) { getLog().error("Could not auto-initialize Velocity", e); throw new RuntimeException("Velocity could not be initialized!", e); } } }