Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/3] Add utility functions for debug log
@ 2018-12-21  4:10 ogawa.yasufumi
  2018-12-21  4:10 ` [spp] [PATCH 1/3] shared: add util functions to set log level ogawa.yasufumi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ogawa.yasufumi @ 2018-12-21  4:10 UTC (permalink / raw)
  To: ferruh.yigit, spp, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Hi,

Dynamic logging of DPDK is useful to configure log level only for
required modules. However, it is a little complex to use, for example,
for changing log level of type of `user*` simply to RTE_LOG_DEBUG.

This update is to add utility functions to change the log level of
`user*` in more simple way. If you change the level of RTE_LOGTYPE_USER1
to RTE_LOG_DEBUG, simply call `set_user_log_debug(1)`. You are also able
to change to any of log level like as
`set_user_log_level(1, RTE_LOG_INFO)`.

Default global log level is RTE_LOG_INFO, so you should change global
level with `--log-level` option of EAL from command line or call
`rte_log_set_global_level()` from inside of your program. 

Thanks,
Yasufumi

Yasufumi Ogawa (3):
  shared: add util functions to set log level
  primary: change dynamic log level to RTE_LOG_DEBUG
  spp_nfv: change dynamic log level to RTE_LOG_DEBUG

 src/nfv/nfv.c       |  2 ++
 src/primary/main.c  |  2 ++
 src/shared/common.c | 37 ++++++++++++++++++++++++++++++++++++-
 src/shared/common.h |  6 ++++++
 4 files changed, 46 insertions(+), 1 deletion(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-21  4:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21  4:10 [spp] [PATCH 0/3] Add utility functions for debug log ogawa.yasufumi
2018-12-21  4:10 ` [spp] [PATCH 1/3] shared: add util functions to set log level ogawa.yasufumi
2018-12-21  4:10 ` [spp] [PATCH 2/3] primary: change dynamic log level to RTE_LOG_DEBUG ogawa.yasufumi
2018-12-21  4:10 ` [spp] [PATCH 3/3] spp_nfv: " ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).