Example #1
0
        /// <summary> Default constructor.
        /// </summary>
        public ExternalLoggerTest() : base("LoggerTest")
        {
            try {
                /*
                 *  use an alternative logger.  Set it up here and pass it in.
                 */

                ve = new VelocityEngine();
                ve.setProperty(VelocityEngine.RUNTIME_LOG_LOGSYSTEM, this);
                ve.init();
            } catch (System.Exception e) {
                System.Console.Error.WriteLine("Cannot setup LoggerTest : " + e);
                System.Environment.Exit(1);
            }
        }
        /// <summary> Default constructor.
        /// </summary>
        public ClassloaderChangeTest()
            : base("ClassloaderChangeTest")
        {
            try {
            /*
            *  use an alternative logger.  Set it up here and pass it in.
            */

            ve = new VelocityEngine();
            ve.setProperty(VelocityEngine.RUNTIME_LOG_LOGSYSTEM, this);
            ve.init();
            } catch (System.Exception e) {
            System.Console.Error.WriteLine("Cannot setup ClassloaderChnageTest : " + e);
            System.Environment.Exit(1);
            }
        }