a0274f56ee97ca783e1ff9c5c212454457799f00,poseidon/helpers/log.py,Logger,Logger_1,#,20

Before Change


            fh = logging.handlers.RotatingFileHandler(
                "/var/log/poseidon/poseidon.log")
            fh.setFormatter(p_formatter)
            poseidon_logger.addHandler(fh)
        except Exception as e:
            logger.warning(
                "Unable to setup Poseidon logger because: {0}".format(str(e)))

After Change



    // define a Handler which writes INFO messages or higher to the sys.stderr
    console = logging.StreamHandler()
    console.setLevel(logging.INFO)
    // set a format which is simpler for console use
    formatter = logging.Formatter("[%(levelname)s] %(name)s - %(message)s")
    // tell the handler to use this format
    console.setFormatter(formatter)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CyberReboot/poseidon
Commit Name: a0274f56ee97ca783e1ff9c5c212454457799f00
Time: 2018-12-11
Author: clewis@iqt.org
File Name: poseidon/helpers/log.py
Class Name: Logger
Method Name: Logger_1


Project Name: arviz-devs/arviz
Commit Name: f97fca42c4dbb3bc1b8a146f5607a8522c1adbee
Time: 2018-11-14
Author: ravinsdrive@gmail.com
File Name: arviz/__init__.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: 956698e52dfb7883101e617a5b4905444be05925
Time: 2014-11-24
Author: bergs@janelia.hhmi.org
File Name: tests/testRoiRequestBatch.py
Class Name:
Method Name: