uima-ducc-common/src/main/java/org/apache/uima/ducc/common/utils/DuccLogger.java [92:157]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static public DuccLogger getLogger(String claz, String component)
    {
        return new DuccLogger(claz, component);
    }

    // Usually just called by DuccService, with the global component logger as base
    // This constructs a logger for the given class, and then add all the appenders
    // from 'this'. Be careful configuring log4j.xml, you probably don't want any
    // appenders on the class 'claz' or you'll get unexpected extra log files.
    public DuccLogger getLoggerFor(String claz)
    {
        if ( logger == null ) {
            System.out.println("DuccLogger is not initialized, cannot create logger for(" + claz + ").");
            return this;
        }

        if ( claz == null ) {
            throw new IllegalArgumentException("New log name must not be null");
        }

        DuccLogger ret = getLogger(claz, this.getComponent());

        Category l = logger;
        // List<Appender> appenders= new ArrayList<Appender>();
        while ( l != null ) {
        	@SuppressWarnings("rawtypes")
			Enumeration apps = l.getAllAppenders();                        
            if ( apps.hasMoreElements() ) {                
                while (apps.hasMoreElements() ) {
                    Appender app = (Appender) apps.nextElement();
                    if ( ret.getAppender(app.getName()) == null ) {
                        ret.addAppender(app);
                    }
                }
            } 
            l = l.getParent();
        }
        return ret;
    }

    // PACKAGE protection
    void removeAllAppenders()
    {
        this.logger.removeAllAppenders();
    }

    // PACKAGE protection
    void addAppender(Appender app)
    {
        this.logger.addAppender(app);
    }

    Appender getAppender(String name)
    {
        return this.logger.getAppender(name);
    }

    static public void setUnthreaded()
    {
        //threaded.set(true);
        System.out.println("setUnthreaded is not supported.");
    }

    static public void setThreaded()
    {
    	threaded.set(true);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



uima-ducc-orchestrator/src/main/java/org/apache/uima/ducc/orchestrator/system/events/log/DuccLogger.java [79:144]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static public DuccLogger getLogger(String claz, String component)
    {
        return new DuccLogger(claz, component);
    }

    // Usually just called by DuccService, with the global component logger as base
    // This constructs a logger for the given class, and then add all the appenders
    // from 'this'. Be careful configuring log4j.xml, you probably don't want any
    // appenders on the class 'claz' or you'll get unexpected extra log files.
    public DuccLogger getLoggerFor(String claz)
    {
        if ( logger == null ) {
            System.out.println("DuccLogger is not initialized, cannot create logger for(" + claz + ").");
            return this;
        }

        if ( claz == null ) {
            throw new IllegalArgumentException("New log name must not be null");
        }

        DuccLogger ret = getLogger(claz, this.getComponent());

        Category l = logger;
        // List<Appender> appenders= new ArrayList<Appender>();
        while ( l != null ) {
        	@SuppressWarnings("rawtypes")
			Enumeration apps = l.getAllAppenders();                        
            if ( apps.hasMoreElements() ) {                
                while (apps.hasMoreElements() ) {
                    Appender app = (Appender) apps.nextElement();
                    if ( ret.getAppender(app.getName()) == null ) {
                        ret.addAppender(app);
                    }
                }
            } 
            l = l.getParent();
        }
        return ret;
    }

    // PACKAGE protection
    void removeAllAppenders()
    {
        this.logger.removeAllAppenders();
    }

    // PACKAGE protection
    void addAppender(Appender app)
    {
        this.logger.addAppender(app);
    }

    Appender getAppender(String name)
    {
        return this.logger.getAppender(name);
    }

    static public void setUnthreaded()
    {
        //threaded.set(true);
        System.out.println("setUnthreaded is not supported.");
    }

    static public void setThreaded()
    {
    	threaded.set(true);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



