You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/08/28 06:37:56 UTC

[GitHub] [incubator-brpc] qicosmos opened a new issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

qicosmos opened a new issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223


   现在logging里面有一个SetMinLogLevel接口,能否在server里面增加一个代理接口,让用户可以通过server去设置日志级别。
   另外能否增加一个宏开关用来控制是否输出日志?因为测试的时候发现日志刷得很频繁,有时候不希望输出日志。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong closed issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
gydong closed issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] qicosmos commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
qicosmos commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-683510461


   我开启了这宏。
   default_variables.cpp中的fail to sscanf, faile to read, fail to xxx之类的日志。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-682404017


   -minloglevel 这个gflag无法满足需求吗?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] qicosmos commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
qicosmos commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-682536381


   我们的工程中也用到了glog,只想禁用brpc部分的输出,而且brpc已经在logging中提供了这个接口了。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] qicosmos commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
qicosmos commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-683513280


   说得也是,也许还得继续查找为什么频繁刷这个日志的原因。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-683512133


   出现这些error本身是不符合预期的吧?我们使用过程中,很少见到brpc框架本身输出的日志,输出的日志都比较重要,能帮助排查问题


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong commented on issue #1223: 能否在server中增加SetMinLogLevel的接口以及禁用日志的宏开关

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1223:
URL: https://github.com/apache/incubator-brpc/issues/1223#issuecomment-683506762


   编译brpc时,如果开启了 BRPC_WITH_GLOG , 则SetMinLogLevel 这个函数没有被定义。
   目前只能设置-minloglevel 这个gflag。
   是哪些日志刷得频繁?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org