Package org.apache.catalina.logger

Examples of org.apache.catalina.logger.LoggerBase


            log.info(sm.getString("containerBase.alreadyStarted", logName()));
            return;
        }
       
        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()==null ) {
                ObjectName lname=lb.createObjectName();
                try {
                    Registry.getRegistry().registerComponent(lb, lname, null);
                } catch( Exception ex ) {
                    log.error( "Can't register logger " + lname, ex);
                }
View Full Code Here


        if ((loader != null) && (loader instanceof Lifecycle)) {
            ((Lifecycle) loader).stop();
        }

        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()!=null ) {
                try {
                    Registry.getRegistry().unregisterComponent(lb.getObjectName());
                } catch( Exception ex ) {
                    log.error( "Can't unregister logger " + lb.getObjectName(), ex);
                }
            }
        }

        // unregister this component
View Full Code Here

            }
            return;
        }
       
        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()==null ) {
                ObjectName lname=lb.createObjectName();
                try {
                    Registry.getRegistry().registerComponent(lb, lname,
                                                             null);
                } catch( Exception ex ) {
                    log.error( "Can't register logger " + lname, ex);
View Full Code Here

        if ((loader != null) && (loader instanceof Lifecycle)) {
            ((Lifecycle) loader).stop();
        }

        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()!=null ) {
                try {
                    Registry.getRegistry().unregisterComponent(lb.getObjectName());
                } catch( Exception ex ) {
                    log.error("Can't unregister logger "
                              + lb.getObjectName(), ex);
                }
            }
        }

        // Notify our interested LifecycleListeners
View Full Code Here

            log.info(sm.getString("containerBase.alreadyStarted", logName()));
            return;
        }
       
        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()==null ) {
                ObjectName lname=lb.createObjectName();
                try {
                    Registry.getRegistry().registerComponent(lb, lname, null);
                } catch( Exception ex ) {
                    log.error( "Can't register logger " + lname, ex);
                }
View Full Code Here

        if ((loader != null) && (loader instanceof Lifecycle)) {
            ((Lifecycle) loader).stop();
        }

        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()!=null ) {
                try {
                    Registry.getRegistry().unregisterComponent(lb.getObjectName());
                } catch( Exception ex ) {
                    log.error( "Can't unregister logger " + lb.getObjectName(), ex);
                }
            }
        }

        // unregister this component
View Full Code Here

            log.info(sm.getString("containerBase.alreadyStarted", logName()));
            return;
        }
       
        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()==null ) {
                ObjectName lname=lb.createObjectName();
                try {
                    Registry.getRegistry().registerComponent(lb, lname, null);
                } catch( Exception ex ) {
                    log.error( "Can't register logger " + lname, ex);
                }
View Full Code Here

        if ((loader != null) && (loader instanceof Lifecycle)) {
            ((Lifecycle) loader).stop();
        }

        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()!=null ) {
                try {
                    Registry.getRegistry().unregisterComponent(lb.getObjectName());
                } catch( Exception ex ) {
                    log.error( "Can't unregister logger " + lb.getObjectName(), ex);
                }
            }
        }

        // unregister this component
View Full Code Here

            log.info(sm.getString("containerBase.alreadyStarted", logName()));
            return;
        }
       
        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()==null ) {
                ObjectName lname=lb.createObjectName();
                try {
                    Registry.getRegistry(null, null)
                        .registerComponent(lb, lname, null);
                } catch( Exception ex ) {
                    log.error( "Can't register logger " + lname, ex);
View Full Code Here

        if ((loader != null) && (loader instanceof Lifecycle)) {
            ((Lifecycle) loader).stop();
        }

        if( logger instanceof LoggerBase ) {
            LoggerBase lb=(LoggerBase)logger;
            if( lb.getObjectName()!=null ) {
                try {
                    Registry.getRegistry(null, null)
                        .unregisterComponent(lb.getObjectName());
                } catch( Exception ex ) {
                    log.error( "Can't unregister logger " + lb.getObjectName(), ex);
                }
            }
        }

        // Notify our interested LifecycleListeners
View Full Code Here

TOP

Related Classes of org.apache.catalina.logger.LoggerBase

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.