Package org.apache.ojb.broker.util.logging

Examples of org.apache.ojb.broker.util.logging.Logger


    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logProblem(PropertyDescriptor pd, Object anObject, Object aValue, String msg)
    {
        Logger logger = getLog();
        logger.error("Error in [PersistentFieldPropertyImpl], " + msg);
        logger.error("Declaring class [" + getDeclaringClass().getName() + "]");
        logger.error("Property Name [" + getName() + "]");
        logger.error("Property Type [" + pd.getPropertyType().getName() + "]");

        if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
        {
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        }
        else
        {
            logger.error("aValue was null");
        }
    }
View Full Code Here


    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logSetProblem(Object anObject, Object aValue, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [set] of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        else
            logger.error("aValue was null");
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logGetProblem(Object anObject, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [get of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logProblem(PropertyDescriptor pd, Object anObject, Object aValue, String msg)
    {
        Logger logger = getLog();
        logger.error("Error in [PersistentFieldPropertyImpl], " + msg);
        logger.error("Declaring class [" + getDeclaringClass().getName() + "]");
        logger.error("Property Name [" + getName() + "]");
        logger.error("Property Type [" + pd.getPropertyType().getName() + "]");

        if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
        {
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        }
        else
        {
            logger.error("aValue was null");
        }
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logProblem(Object anObject, Object aValue, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in [PersistentFieldPropertyImpl], " + msg);
        logger.error("Declaring class [" + getDeclaringClass().getName() + "]");
        logger.error("Property Name [" + getName() + "]");
        logger.error("Property Type [" + getPropertyDescriptor().getPropertyType().getName() + "]");

        if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
        {
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        }
        else
        {
            logger.error("aValue was null");
        }
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logSetProblem(Object anObject, Object aValue, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [set] of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        else
            logger.error("aValue was null");
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logGetProblem(Object anObject, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [get of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logSetProblem(Object anObject, Object aValue, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [set] of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
        if (aValue != null)
            logger.error("aValue was class [" + aValue.getClass().getName() + "]");
        else
            logger.error("aValue was null");
    }
View Full Code Here

    /**
     * Let's give the user some hints as to what could be wrong.
     */
    protected void logGetProblem(Object anObject, String msg)
    {
        Logger logger = LoggerFactory.getDefaultLogger();
        logger.error("Error in operation [get of object [" + this.getClass().getName() + "], " + msg);
        logger.error("Property Name [" + getName() + "]");
        if (anObject instanceof DynaBean)
        {
            DynaBean dynaBean = (DynaBean) anObject;
            logger.error("anObject was DynaClass [" + dynaBean.getDynaClass().getName() + "]");
        }
        else if (anObject != null)
        {
            logger.error("anObject was class [" + anObject.getClass().getName() + "]");
        }
        else
        {
            logger.error("anObject was null");
        }
    }
View Full Code Here


    public void testLogggers() throws Exception
    {
        String prefix = "Ignore this!! LOGGING TEST OUTPUT: ";
        Logger pbroker = LoggerFactory.getLogger(PersistenceBrokerImpl.class);
        Logger rsiterator = LoggerFactory.getLogger(RsIterator.class);
        Logger boot = LoggerFactory.getBootLogger();

        pbroker = LoggerFactory.getLogger(PersistenceBrokerImpl.class);
        rsiterator = LoggerFactory.getLogger(RsIterator.class);

        pbroker.debug(prefix + "Should be with DEBUG level");
        pbroker.info(prefix + "Should be with INFO level");
        pbroker.warn(prefix + "Should be with WARN level");

        rsiterator.debug(prefix + "Should be with DEBUG level");
        rsiterator.info(prefix + "Should be with INFO level");
        rsiterator.warn(prefix + "Should be with WARN level");

        boot.debug(prefix + "Should be with DEBUG level");
        boot.info(prefix + "Should be with INFO level");
        boot.warn(prefix + "Should be with WARN level");
    }
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.util.logging.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.