Package com.xmultra.log

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,
View Full Code Here


        // Create a new InitMapHolder.
        initMapHolder = new InitMapHolder();

        // Create new Logger object.
        logger = new Logger(initMapHolder, managerNode, this);

        // Create FileUtils and store in InitMapHolder.

        fileUtils = new FileUtils(logger, xmultraRootDir);
        initMapHolder.setEntry(this, InitMapHolder.FILE_UTILS, fileUtils);
View Full Code Here

        // Set the description for the logs to empty.
        // (will get filled in by Logger).
        initMapHolder.setEntry(this, InitMapHolder.MANAGER_DESCRIPTION, "");

        // Create new Logger object.
        logger = new Logger(initMapHolder, systemLogsNode, null);

        // Create the FileUtils object and store in InitMapHolder.
        fileUtils = new FileUtils(logger, xmultraRootDir);
        initMapHolder.setEntry(this, InitMapHolder.FILE_UTILS, fileUtils);
View Full Code Here

TOP

Related Classes of com.xmultra.log.Logger

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.