Package org.sf.bee.commons.logging.configuration.exceptions

Examples of org.sf.bee.commons.logging.configuration.exceptions.LogConfigurationException


    public void init() throws LogConfigurationException {
        if (null != _file) {
            this.initialize(_file);
        } else {
            throw new LogConfigurationException("Missing configuration file. Unable to initialize configuration.");
        }
    }
View Full Code Here


        InputSource source = new InputSource(reader);
        XmlDocument document = null;
        try {
            document = new XmlDocument(source);
        } catch (XmlParsingException ex) {
            throw new LogConfigurationException(ex.toString());
        }
        this.initializeFromDocument(document, false);
    }
View Full Code Here

    private void initialize(File file) throws LogConfigurationException {
        XmlDocument document = null;
        try {
            document = new XmlDocument(file);
        } catch (XmlParsingException ex) {
            throw new LogConfigurationException(ex.toString());
        }
        this.initializeFromDocument(document, false);
    }
View Full Code Here

    private void initializeFromDocument(XmlDocument document,
            boolean isFromWatchDog) throws LogConfigurationException {
        XmlNode root = document.getDocumentElement();
        if (null == root) {
            throw new LogConfigurationException("Invalid configuration file! Root node should not be NULL.");
        }
        // common properties
        this.setCommonProperties(root);

        // check if is enabled or not
View Full Code Here

TOP

Related Classes of org.sf.bee.commons.logging.configuration.exceptions.LogConfigurationException

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.