Package nexj.core.util

Examples of nexj.core.util.StackTrace


                  {
                     m_logger.log(nLevel, buf);
                  }
                  else
                  {
                     StackTrace t = new StackTrace();

                     m_query.getInvocationContext().getMachine().updateStackTrace(t);
                     m_logger.log(nLevel, buf, t);
                     m_bStackLogged = true;
                  }
View Full Code Here


            logQuery(Logger.WARN);
         }

         if (m_logger.isWarnEnabled())
         {
            StackTrace t = new StackTrace();

            m_query.getInvocationContext().getMachine().updateStackTrace(t);
            m_logger.warn(getType() + " execution time: " + lDuration + " ms (potential performance problem)", t);
         }
      }
View Full Code Here

      }
      catch (Exception e)
      {
         m_context.getMachine().updateStackTrace(e);

         StackTrace trace = new StackTrace();
         StackTraceElement[] traceArray = e.getStackTrace();
         StackTraceElement[] currentArray = trace.getStackTrace();
         StackTraceElement[] amendedTraceArray = new StackTraceElement[traceArray.length + currentArray.length];

         System.arraycopy(traceArray, 0, amendedTraceArray, 0, traceArray.length);
         System.arraycopy(currentArray, 0, amendedTraceArray, traceArray.length, currentArray.length);
View Full Code Here

                     {
                        String sMsg = "Loading collection \"" + m_attribute.getName() + "\" of " + m_container;

                        if (s_logger.isDumpEnabled())
                        {
                           StackTrace t = new StackTrace();

                           m_container.getInvocationContext().getMachine().updateStackTrace(t);
                           s_logger.dump(sMsg, t);
                        }
                        else
View Full Code Here

               {
                  String sMsg = "Loading attributes " + attributes + " of " + this;

                  if (s_logger.isDumpEnabled())
                  {
                     StackTrace t = new StackTrace();

                     m_context.getMachine().updateStackTrace(t);
                     s_logger.dump(sMsg, t);
                  }
                  else
View Full Code Here

    */
   public void logTrace(int nLevel)
   {
      if (GlobalEnvironment.LOGGER.isLevelEnabled(nLevel))
      {
         StackTrace t = new StackTrace();

         updateStackTrace(t);
         GlobalEnvironment.LOGGER.log(nLevel, "Stack trace", t);
      }
   }
View Full Code Here

TOP

Related Classes of nexj.core.util.StackTrace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.