Hello,


How to enlarge the allowed max characters per line in log files generated by the rdk-logger(log4c) under the /rdklogs/log/?

Is there any parameter can be configured?

We want to out put about 2048 characters in one RDK_LOG.

Thank you!


  • No labels

2 Comments

  1. Hi,

    There is no configurable parameter at run time to increase the buffer size. The buffer size is hard coded in rdk_logger to 1024. It needs to be changed at build time.

    If you need to increase the size for CcspLog messages, then please check buffer size in rdk_dbg_MsgRaw() in rdk_logger component.

    Thanks,
    Sipra

    1. Hello sipra samantray 

      Thank you very much!

      I checked under the component rdk_logger. only onboard log feature has the 1024 limitation. this will dedicate to write the log to the file  /rdklogs/logs/OnBoardingLog.txt.0 by default.

      the highly suspected point is ./rdkc_log4crc:        <bufsize>1024</bufsize>, but I have set this parameter to 0 in the log4crc on my device. 0 means no limitation. but I noticed that only several hundred characters can be logged for one CcspTraceInfo.

      Could you please help to double check? is there any other limitation?

      Thank you!


      grep -r 1024 ./

      ./autom4te.cache/output.1:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/output.5:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/output.2:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/traces.0:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/traces.3:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/output.3:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/output.4:    lt_cv_sys_max_cmd_len=102400
      ./autom4te.cache/output.0:    lt_cv_sys_max_cmd_len=102400
      ./utils/rdk_logger_onboard_main.c:#define MAX_BUF_SIZE 1024
      ./cfg/libtool.m4:    lt_cv_sys_max_cmd_len=102400
      ./cfg/ltmain.sh:# define LT_PATHMAX 1024
      ./src/rdk_logger_onboard.c:#define MAX_BUF_SIZE 1024
      ./src/rdk_debug_priv.c:    const int MAX_VAR_LEN = 1024;
      ./configure:    lt_cv_sys_max_cmd_len=102400
      ./rdkc_log4crc:        <bufsize>1024</bufsize>
      ./aclocal.m4:    lt_cv_sys_max_cmd_len=102400