Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import paddle.fluid后logging模块无法使用 #17731

Closed
HongyuLi2018 opened this issue May 29, 2019 · 2 comments
Closed

import paddle.fluid后logging模块无法使用 #17731

HongyuLi2018 opened this issue May 29, 2019 · 2 comments

Comments

@HongyuLi2018
Copy link

import logging
import paddle.fluid as fluid

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    logger = logging.getLogger('test')
    logger.info('This is a log info')

import paddle.fluid之后 python的logging模块失效,注销掉import paddle.fluid as fluid之后就正常

@HongyuLi2018
Copy link
Author

环境 python2.7.13, paddle1.3.1和1.4.1均有相同问题,logging无法打印信息

@fc500110
Copy link
Contributor

import logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
from paddle import fluid



if __name__ == "__main__":
    logger = logging.getLogger('test')
    logger.info('This is a log info')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants