Examples of Logger


Examples of com.xmultra.log.Logger

        this.getMessageConfDocumentStr = fileUtils.readFile(this.getMessageFile);

        // Insert DTD into xml get message configuration file
        this.getMessageConfDocumentStr = insertDTD(imh, this.getMessageConfDocumentStr);

        Logger logger = (Logger)imh.getEntry(InitMapHolder.LOGGER);
        ErrorLogEntry errEntry = new ErrorLogEntry(this, VERSION);

        if (this.getMessageConfDocumentStr != null) {
            try    {
                this.getMessageConfDocumentStr = replaceProperties(this.getMessageConfDocumentStr);
                this.getMessageConfDocumentStr = XmultraConfig.replaceSymbols(this.getMessageConfDocumentStr);
            }
            catch (InvalidConfigFileFormatException e) {
                errEntry.setThrowable(e);
                errEntry.setAppContext("GetMessage()");
                errEntry.setAppMessage("Error while parsing properties in GetMessage file: " +
                                       this.getMessageFile.getPath() );
                logger.logError(errEntry);
            }
            // Write the file back with insertion of DTD and properties replaced.
            //// fileUtils.writeFile(this.getMessageFile, getMessageConfDocumentStr);
        }

        // Can throw SAXException
        Document getMessageConfDocument = null;
        try {
            getMessageConfDocument =
                xmlParseUtils.convertStringToXmlDocument(getMessageConfDocumentStr, validate);
        }
        catch (SAXException e) {
            errEntry.setThrowable(e);
            errEntry.setAppContext("insertDTD()");
            errEntry.setAppMessage(
                    "Error while parsing config file: "
                    + this.getMessageFile.getName());
            logger.logError(errEntry);
            return;
        }

        Node messageNode = xmlParseUtils.getSingletonNode(
                getMessageConfDocument,

Examples of common.db.io.Logger

  }

  private static synchronized void writeToUI(String line)
  {
    if (uiLogger == null)
      uiLogger = new Logger(UI_LOG);

    uiLogger.log(line);

  }

Examples of de.kilobyte22.lib.logging.Logger

        channel = c;
        sender = s;
        args = a;
        bot = b;
        command = cmd;
        logger = new Logger("CMD:" + cmd);
    }

Examples of de.matrixweb.smaller.clients.common.Logger

            .println("\tThe input is read from stdin the output is written to stdout");
        System.exit(1);
      }
    }

    final Util util = new Util(new Logger() {
      public void debug(final String message) {
        System.err.println(message);
      }
    });
    // IOUtils.write(IOUtils.toByteArray(System.in), System.out);

Examples of de.matrixweb.vfs.Logger

          final String host, final String port, final String proxyhost,
          final String proxyport, final ConfigFile configFile)
          throws ExecutionException {
        final ProcessorFactory processorFactory = new JavaEEProcessorFactory();
        try {
          final VFS vfs = new VFS(new Logger() {
            @Override
            public void debug(final String message) {
              getLog().debug(message);
            }

Examples of fitnesse.components.Logger

  }
  */

  private static Logger makeLogger(Arguments arguments) {
    String logDirectory = arguments.getLogDirectory();
    return logDirectory != null ? new Logger(logDirectory) : null;
  }

Examples of flex.messaging.log.Logger

            if (data instanceof String)
            {
                String requestString = (String)data;
                if (Log.isInfo())
                {
                    Logger logger = Log.getLogger(HTTPProxyService.LOG_CATEGORY);
                    logger.debug(BEGIN + method + REQUEST);
                    logger.debug(StringUtils.prettifyString(requestString));
                    logger.debug(END + method + REQUEST);
                }

                try
                {
                    StringRequestEntity requestEntity = new StringRequestEntity(requestString, null, "UTF-8");
                    ((EntityEnclosingMethod)httpMethod).setRequestEntity(requestEntity);
                }
                catch (UnsupportedEncodingException ex)
                {
                    ProxyException pe = new ProxyException(CAUGHT_ERROR);
                    pe.setDetails(CAUGHT_ERROR, "1", new Object[] { ex });
                    throw pe;
                }
            }
            else if (dataClass.isArray() && Byte.TYPE.equals(dataClass.getComponentType()))
            {
                byte[] dataBytes = (byte[])data;
                ByteArrayRequestEntity requestEntity = new ByteArrayRequestEntity(dataBytes, context.getContentType());
                ((EntityEnclosingMethod)httpMethod).setRequestEntity(requestEntity);
            }
            else if (data instanceof InputStream)
            {
                InputStreamRequestEntity requestEntity = new InputStreamRequestEntity((InputStream)data, context.getContentType());
                ((EntityEnclosingMethod)httpMethod).setRequestEntity(requestEntity);
            }
            //TODO: Support multipart post
            //else
            //{
                //FIXME: Throw exception if unhandled data type
            //}
        }
        else if (httpMethod instanceof GetMethod)
        {
            Object req = processBody(context);

            if (req instanceof String)
            {
                String requestString = (String)req;
                if (Log.isInfo())
                {
                    Logger logger = Log.getLogger(HTTPProxyService.LOG_CATEGORY);
                    logger.debug(BEGIN + method + REQUEST);
                    logger.debug(StringUtils.prettifyString(requestString));
                    logger.debug(END + method + REQUEST);
                }

                if (!"".equals(requestString))
                {
                    String query = context.getHttpMethod().getQueryString();

Examples of flex2.compiler.Logger

    //
    //--------------------------------------------------------------------------
   
    public static int errorCount()
    {
        Logger l = logger.get();
        if (l != null)
        {
            return l.errorCount();
        }
        else
        {
            return 0;
        }

Examples of fr.eolya.utils.Logger

    this.verbose = verbose;

    try {
      String logFilesPath = config.getProperty("/pipeline/param[@name='logfilename']");
      logFilesPath = Utils.getValidPropertyPath(logFilesPath, null, "HOME");
      logger = new Logger(logFilesPath);
      //int onceModeTimeOut = Integer.parseInt(config.getProperty("/pipeline/param[@name='oncemodetimeout']", "300"));

      logger.log("=================================");
      logger.log("Pipeline starting");
      if (once)

Examples of httl.spi.Logger

    }
  }

  private static void logConfigPath(Engine engine, ServletContext servletContext, String path) {
    if (engine != null && servletContext != null && path != null) {
      Logger logger = engine.getProperty("logger", Logger.class);
      if (logger != null && logger.isInfoEnabled()) {
        String name = engine.getName();
        try {
          if (name != null && name.startsWith("/")
              && servletContext.getResource(name) != null) {
            logger.info("Load httl config form " + servletContext.getRealPath(name) + " in webapp.");
          }
        } catch (IOException e) {
          // ignore
        }
      }
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.