Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Add logging to the console.

This needs only to be called from ArchGenXML.py.

        def addConsoleLogging():
    """Add logging to the console.

    This needs only to be called from ArchGenXML.py.
    """
    log = logging.getLogger()
    hdlr = logging.StreamHandler(sys.stdout)
    formatter = logging.Formatter('%(levelname)-5s %(message)s')
    hdlr.setLevel(logging.INFO)
    hdlr.setFormatter(formatter)
    log.addHandler(hdlr)
        


src/a/r/archgenxml-2.6/src/archgenxml/ArgoUMLProfileGenerator.py   archgenxml(Download)
from archgenxml.TaggedValueSupport import tgvRegistry
from archgenxml import loginitializer
loginitializer.addConsoleLogging()
import logging
log = logging.getLogger("argouml")