Lynten/stanford-corenlp

Please give a name to your logger, to avoid conflicts with users of module

Opened this issue · 0 comments

Hi

Please do not use logging.basicConfig() to configure logging, since it will mix your logger with any other logger defined by a user of your module (see first comment of https://stackoverflow.com/a/35326281/141586)
In case someone is having conflicts like me (log messages showing twice, for example), set propagate to False in your logger object.

logger = logging.getLogger(__name__)
logger.propagate = False