def getLogAppenders(loggerName='console'):
    loggerMap = []
    myLogger = LoggerFactory.getLogger('logmanager')
    loggerContext = LoggerFactory.getILoggerFactory()
    myLogger.error('===================')
    appenderMap = {}
    for logger in loggerContext.getLoggerList():
        appenderList = logger.iteratorForAppenders()
        while appenderList.hasNext():
            appender = appenderList.next()
            logger.error(('Logger %s' % appender.getName()))
            if (appender.getName() not in appenderMap.keys()):
                loggerMap.append({'name': appender.getName(), 'appender': 'NA'})
                myLogger.error(('Appender %s: %s' % (appender.getName(), 'NA')))
    myLogger.error('===================')
    return loggerMap
def getLogAppenders(loggerName='console'):
    loggerMap = []
    myLogger = LoggerFactory.getLogger('logmanager')
    loggerContext = LoggerFactory.getILoggerFactory()
    myLogger.error('===================')
    appenderMap = {}
    for logger in loggerContext.getLoggerList():
        appenderList = logger.iteratorForAppenders()
        while appenderList.hasNext():
            appender = appenderList.next()
            logger.error(('Logger %s' % appender.getName()))
            if (appender.getName() not in appenderMap.keys()):
                loggerMap.append({'name': appender.getName(), 'appender': 'NA'})
                myLogger.error(('Appender %s: %s' % (appender.getName(), 'NA')))
    myLogger.error('===================')
    return loggerMap