Beispiel #1
0
        /// <summary> Initialize the Velocity logging system.
        /// *
        /// @throws Exception
        /// </summary>
        private void initializeLogger()
        {
            /*
             * Initialize the logger. We will eventually move all
             * logging into the logging manager.
             */

            if (logSystem is PrimordialLogSystem)
            {
                PrimordialLogSystem pls = (PrimordialLogSystem)logSystem;
                // logSystem = LogManager.createLogSystem(this);
                logSystem = new NullLogSystem();

                /*
                 * in the event of failure, lets do something to let it
                 * limp along.
                 */
                if (logSystem == null)
                {
                    logSystem = new NullLogSystem();
                }
                else
                {
                    pls.DumpLogMessages(logSystem);
                }
            }
        }
Beispiel #2
0
 private void initializeLogger()
 {
     if (this.logSystem is PrimordialLogSystem)
     {
         PrimordialLogSystem primordialLogSystem = (PrimordialLogSystem)this.logSystem;
         this.logSystem = new NullLogSystem();
         if (this.logSystem == null)
         {
             this.logSystem = new NullLogSystem();
         }
         else
         {
             primordialLogSystem.DumpLogMessages(this.logSystem);
         }
     }
 }
Beispiel #3
0
 private void InitBlock()
 {
     logSystem     = new PrimordialLogSystem();
     configuration = new ExtendedProperties();
 }