import logging
l = logging.getLogger('abc')
l.setLevel(10)
l.addHandler(logging.StreamHandler())
l.info('ABC ONLY')
print("")
logging.warn('root warning?')
print("")
l.info('abc duplicate?')
print("")
l2 = logging.getLogger('cba')
l2.setLevel(10)
l2.addHandler(logging.StreamHandler())
l2.info('cba duplicate?')
print("")
l3 = logging.Logger("cab", logging.INFO)
l3.addHandler(logging.StreamHandler())
l3.info('cab, no duplicates')
aW1wb3J0IGxvZ2dpbmcKCmwgPSBsb2dnaW5nLmdldExvZ2dlcignYWJjJykKbC5zZXRMZXZlbCgxMCkKbC5hZGRIYW5kbGVyKGxvZ2dpbmcuU3RyZWFtSGFuZGxlcigpKQpsLmluZm8oJ0FCQyBPTkxZJykKcHJpbnQoIiIpCgpsb2dnaW5nLndhcm4oJ3Jvb3Qgd2FybmluZz8nKQpwcmludCgiIikKbC5pbmZvKCdhYmMgZHVwbGljYXRlPycpCnByaW50KCIiKQoKbDIgPSBsb2dnaW5nLmdldExvZ2dlcignY2JhJykKbDIuc2V0TGV2ZWwoMTApCmwyLmFkZEhhbmRsZXIobG9nZ2luZy5TdHJlYW1IYW5kbGVyKCkpCmwyLmluZm8oJ2NiYSBkdXBsaWNhdGU/JykKcHJpbnQoIiIpCgpsMyA9IGxvZ2dpbmcuTG9nZ2VyKCJjYWIiLCBsb2dnaW5nLklORk8pCmwzLmFkZEhhbmRsZXIobG9nZ2luZy5TdHJlYW1IYW5kbGVyKCkpCmwzLmluZm8oJ2NhYiwgbm8gZHVwbGljYXRlcycp