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

paddle V2 在提交任务的时候怎么关闭掉大部分的info log日志 #3884

Closed
youan1 opened this issue Sep 5, 2017 · 3 comments
Closed
Labels
User 用于标记用户问题

Comments

@youan1
Copy link

youan1 commented Sep 5, 2017

RT,
日志太多了,想关闭掉info log,请问如何在提交任务的时候设置关闭info级别日志,只保留error日志的方法

@lcy-seso
Copy link
Contributor

lcy-seso commented Sep 5, 2017

  1. 日志太多指的是哪一类,什么样的日志信息呢?

  2. 试试,提高 logging 等级能不能过滤一部分输出。

    logger = logging.getLogger("paddle")
    logger.setLevel(logging.ERROR)

@lcy-seso lcy-seso added the User 用于标记用户问题 label Sep 5, 2017
@lcy-seso lcy-seso closed this as completed Sep 8, 2017
@youan1
Copy link
Author

youan1 commented Sep 11, 2017

这个直接加在脚本里,编译过不去,错误为:
File "dnn_experiment_fmhigh_updated4.py", line 32, in
logger = logging.getLogger("paddle")
NameError: name 'logging' is not defined

但是我已经
from paddle.trainer.config_parser import logger

请问logging是在哪里定义的

@typhoonzero
Copy link
Contributor

import logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

3 participants