Examples of Logging


Examples of com.asakusafw.vocabulary.operator.Logging

        for (int i = 1, n = a.countParameters(); i < n; i++) {
            if (a.getParameterType(i).isBasic() == false) {
                a.error(i, "ロギング演算子の2つ目以降の引数は文字列またはプリミティブ型である必要があります");
            }
        }
        Logging annotation = context.element.getAnnotation(Logging.class);
        if (annotation == null) {
            a.error("注釈の解釈に失敗しました");
            return null;
        }
        OperatorProcessorUtil.checkPortName(a, new String[] {
                annotation.outputPort(),
        });
        if (a.hasError()) {
            return null;
        }

        List<DocElement> elements = Lists.create();
        elements.addAll(a.getExecutableDocument());
        elements.add(context.environment.getFactory().newDocText(
                "<p>なお、この演算子の出力は結線しなくても自動的に停止演算子に結線される。</p>"));

        Builder builder = new Builder(getTargetAnnotationType(), context);
        builder.addAttribute(a.getObservationCount(ObservationCount.AT_LEAST_ONCE));
        builder.addAttribute(Connectivity.OPTIONAL);
        builder.addAttribute(annotation.value());
        builder.setDocumentation(elements);
        builder.addInput(
                a.getParameterDocument(0),
                a.getParameterName(0),
                a.getParameterType(0).getType(),
                0);
        builder.addOutput(
                "入力された内容",
                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Logging

    public void preProcess(Object object, Method method, ParameterData[] parameters, CommandContext context) throws CommandException, ParameterException {
    }

    @Override
    public void preInvoke(Object object, Method method, ParameterData[] parameters, Object[] args, CommandContext context) throws CommandException {
        Logging loggingAnnotation = method.getAnnotation(Logging.class);
        Logging.LogMode logMode;
        StringBuilder builder = new StringBuilder();
       
        if (loggingAnnotation == null) {
            logMode = null;
        } else {
            logMode = loggingAnnotation.value();
        }

        Actor sender = context.getLocals().get(Actor.class);
        Player player;
View Full Code Here

Examples of com.sun.appserv.management.ext.logging.Logging

            @HandlerOutput(name="hasResult", type=Boolean.class)}
     )
     public static void getErrorInfoList(HandlerContext handlerCtx){
        String instanceName = (String )handlerCtx.getInputValue("instanceName");
        Map infoMap[] = null;
        Logging logging = getLoggingBean(instanceName);
       
        if (logging != null)
            infoMap = logging.getErrorInfo();
       
       
        List result = new ArrayList();
       
        if (infoMap == null || infoMap.length <= 0){
View Full Code Here

Examples of com.sun.appserv.management.ext.logging.Logging

     )
     public static void getErrorLoggersList(HandlerContext handlerCtx){
        String instanceName = (String )handlerCtx.getInputValue("instanceName");
        String ts = (String )handlerCtx.getInputValue("timeStamp");
        Long timeStamp = Long.parseLong(ts);
        Logging logging = getLoggingBean(instanceName);
        List result = new ArrayList();
       
        if (logging == null ){
            handlerCtx.setOutputValue("result", result);
            handlerCtx.setOutputValue("hasResults", false);
            handlerCtx.setOutputValue("hasSevereChart", false);
            handlerCtx.setOutputValue("hasWarningChart", false);
            return;
        }
       
        Map<String, Integer> warningMap = logging.getErrorDistribution(timeStamp, ""+Level.WARNING);
        Map<String, Integer> severeMap = logging.getErrorDistribution(timeStamp, ""+Level.SEVERE);
        Map<String, Integer[]>  combinedMap = new HashMap();
        String demo = (String )handlerCtx.getInputValue("demo");
       
        // combine date from both map
       
View Full Code Here

Examples of com.sun.appserv.management.ext.logging.Logging

      query will begin at the next available index.
   */
      public LogQueryResult
  query()
  {
      final Logging   logging = getLogging();
      assert( logging != null );
     
        final LogQueryResult result = logging.queryServerLog(
            mLogFile,
            mStartIndex,
            mSearchForward,
            mMaxRecords,
            mStartTime,
View Full Code Here

Examples of com.sun.appserv.management.ext.logging.Logging

      query will begin at the next available index.
   */
      public LogQueryResult
  query()
  {
      final Logging   logging = getLogging();
      assert( logging != null );
     
        final LogQueryResult result = logging.queryServerLog(
            mLogFile,
            mStartIndex,
            mSearchForward,
            mMaxRecords,
            mStartTime,
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.logging.Logging

      // The visualization will not be used anymore.
      vis.destroy();
      synchronizedRedraw();
    }
    catch(Exception e) {
      final Logging logger = Logging.getLogger(task.getFactory().getClass());
      if(logger != null && logger.isDebugging()) {
        logger.exception("Thumbnail failed.", e);
      }
      else {
        LoggingUtil.warning("Thumbnail for " + task.getFactory().getClass().getName() + " failed - enable debugging to see details.");
      }
      // TODO: hide the failed image?
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.logging.Logging

      // The visualization will not be used anymore.
      vis.destroy();
      synchronizedRedraw();
    }
    catch(Exception e) {
      final Logging logger = Logging.getLogger(task.getFactory().getClass());
      if(logger != null && logger.isDebugging()) {
        logger.exception("Thumbnail failed.", e);
      }
      else {
        LoggingUtil.warning("Thumbnail for " + task.getFactory().getClass().getName() + " failed - enable debugging to see details.");
      }
      // TODO: hide the failed image?
View Full Code Here

Examples of frost.util.Logging

        splashscreen.setText(language.getString("Splashscreen.message.1"));
        splashscreen.setProgress(20);

        //Initializes the logging and skins
        new Logging(frostSettings);

        {
            StringBuilder sb = new StringBuilder();
            sb.append("***** Starting Frost "+getClass().getPackage().getSpecificationVersion()+" *****\n");
            for( final String s : Frost.getEnvironmentInformation() ) {
View Full Code Here

Examples of io.airlift.log.Logging

        // unhook out and err while initializing logging or logger will print to them
        PrintStream out = System.out;
        PrintStream err = System.err;
        try {
            if (debug) {
                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.setLevel("com.facebook.presto", Level.DEBUG);
            }
            else {
                System.setOut(new PrintStream(nullOutputStream()));
                System.setErr(new PrintStream(nullOutputStream()));

                Logging logging = Logging.initialize();
                logging.configure(new LoggingConfiguration());
                logging.disableConsole();
            }
        }
        catch (IOException e) {
            throw Throwables.propagate(e);
        }
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.