Examples of LogImpl


Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(Class clazz)
/*     */   {
/* 208 */     Logi18n log = null;
/* 209 */     setupLogSystem();
/* 210 */     AbstractLogInterface logInterface = m_logFactory.getLog(clazz);
/* 211 */     log = new LogImpl((LogInterface)logInterface);
/* 212 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 213 */     return log;
/*     */   }
View Full Code Here

Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(String name)
/*     */   {
/* 229 */     Logi18n log = null;
/* 230 */     setupLogSystem();
/* 231 */     AbstractLogInterface logInterface = m_logFactory.getLog(name);
/* 232 */     log = new LogImpl((LogInterface)logInterface, name);
/* 233 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 234 */     return log;
/*     */   }
View Full Code Here

Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(Class clazz, String resBundle)
/*     */   {
/* 245 */     Logi18n log = null;
/* 246 */     setupLogSystem();
/* 247 */     AbstractLogInterface logInterface = m_logFactory.getLog(clazz);
/* 248 */     log = new LogImpl((LogInterface)logInterface, resBundle);
/* 249 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 250 */     return log;
/*     */   }
View Full Code Here

Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(Class clazz, String[] resBundles)
/*     */   {
/* 264 */     Logi18n log = null;
/* 265 */     setupLogSystem();
/* 266 */     AbstractLogInterface logInterface = m_logFactory.getLog(clazz);
/* 267 */     log = new LogImpl((LogInterface)logInterface, resBundles);
/* 268 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 269 */     return log;
/*     */   }
View Full Code Here

Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(String name, String resBundle)
/*     */   {
/* 282 */     Logi18n log = null;
/* 283 */     setupLogSystem();
/* 284 */     AbstractLogInterface logInterface = m_logFactory.getLog(name);
/* 285 */     log = new LogImpl((LogInterface)logInterface, resBundle);
/* 286 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 287 */     return log;
/*     */   }
View Full Code Here

Examples of com.arjuna.common.internal.util.logging.LogImpl

/*     */   public static Logi18n getLogi18n(String name, String[] resBundles)
/*     */   {
/* 300 */     Logi18n log = null;
/* 301 */     setupLogSystem();
/* 302 */     AbstractLogInterface logInterface = m_logFactory.getLog(name);
/* 303 */     log = new LogImpl((LogInterface)logInterface, resBundles);
/* 304 */     log.setLevels(m_debugLevel, m_visLevel, m_facLevel);
/* 305 */     return log;
/*     */   }
View Full Code Here

Examples of org.browsermob.proxy.jetty.log.LogImpl

        Log l = LogFactory.getLog(Debug.class);
       
        if (!(l instanceof LogImpl))
            return;
        LogImpl log = (LogImpl) l;
       
       
        TableForm tf = new TableForm(request.getRequestURI());
        page.add(tf);
        tf.table().newRow().addCell(new Block(Block.Bold)
            .add(new Font(3,true).add(getServletInfo()))).cell().attribute("COLSPAN","2");
        tf.table().add(Break.rule);
       
        tf.addCheckbox("D","Debug On",log.getDebug());
        tf.addTextField("V","Verbosity Level",6,""+log.getVerbose());
        tf.addTextField("P","Debug Patterns",40,log.getDebugPatterns());
        tf.addCheckbox("W","Suppress Warnings",log.getSuppressWarnings());

       
        LogSink[] sinks = log.getLogSinks();
        for (int s=0;sinks!=null && s<sinks.length;s++)
        {
            if (sinks[s]==null)
                continue;
View Full Code Here

Examples of org.browsermob.proxy.jetty.log.LogImpl

        Log l = LogFactory.getLog(Debug.class);
       
        if (!(l instanceof LogImpl))
            return;
        LogImpl log = (LogImpl) l;
        String action=request.getParameter("Action");
       
        if ("Set Options".equals(action))
        {
            log.setDebug("on".equals(request.getParameter("D")));
            log.setSuppressWarnings("on".equals(request.getParameter("W")));
            String v=request.getParameter("V");
            if (v!=null && v.length()>0)
                log.setVerbose(Integer.parseInt(v));
            else
                log.setVerbose(0);
            log.setDebugPatterns(request.getParameter("P"));


            LogSink[] sinks = log.getLogSinks();
            for (int s=0;sinks!=null && s<sinks.length;s++)
            {
                if (sinks[s]==null)
                    continue;
               
                if ("on".equals(request.getParameter("LSS"+s)))
                {
                    if(!sinks[s].isStarted())
                        try{sinks[s].start();}catch(Exception e){log.warn(e);}
                }
                else
                {
                    if(sinks[s].isStarted())
                        try{sinks[s].stop();}catch(InterruptedException e){}
                }

                String options=request.getParameter("LO"+s);
                if (options==null)
                    options="";
               
                if (sinks[s] instanceof OutputStreamLogSink)
                {
                    OutputStreamLogSink sink=(OutputStreamLogSink)sinks[s];
                   
                    sink.setLogTags("on".equals(request.getParameter("LT"+s)));
                    sink.setLogLabels ("on".equals(request.getParameter("LL"+s)));
                    sink.setLogStackSize("on".equals(request.getParameter("Ls"+s)));
                    sink.setLogStackTrace("on".equals(request.getParameter("LS"+s)));
                    sink.setSuppressStack("on".equals(request.getParameter("SS"+s)));
                    sink.setLogOneLine("on".equals(request.getParameter("SL"+s)));

                    sink.setFilename(request.getParameter("LF"+s));
                }
               
            }
        }
        else if ("Add LogSink".equals(action))
        {
            System.err.println("add log sink "+request.getParameter("LSC"));
            try
            {
                log.add(request.getParameter("LSC"));
            }
            catch(Exception e)
            {
                log.warn(e);
            }
        }
        else if ("Delete Stopped Sinks".equals(action))
        {
            log.deleteStoppedLogSinks();
        }
       
        response.sendRedirect(request.getContextPath()+
                              request.getServletPath()+"/"+
                              Long.toString(System.currentTimeMillis(),36)+
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.log.impl.LogImpl

   * @param requestResponses: a list of messages in the form of request-response pairs.
   * @return a log based on a list of request-response pairs.
   */
  public Log buildLog(List requestResponses)
  {
    log = new LogImpl();
    logMonitorInformation();

    // log the messages
    for (Iterator i = requestResponses.iterator(); i.hasNext();)
    {
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.log.impl.LogImpl

  /**
   * Create log file.
   */
  public Log newLog()
  {
    return new LogImpl();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.