RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Below code can be added to logback.xml file in the root directory of the application to add all the application logs in to the file /logs/app.log. This log file shall be required to trace the root cause if any issue occurs.
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>logs/app.log</file> <encoder> <charset>UTF-8</charset> <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} %thread %logger{50} - %msg%n</pattern> </encoder> </appender> <root level="INFO"> <appender-ref ref="FILE" /> </root> </configuration> |
---|
The output mentioned item is the sample log details that shall be used for investigation,
INFO 2018-06-25 18:48:29.998 qtp425995691-16 com.comcast.xconf.estbfirmware.EstbFirmwareService - XCONF_LOG estbMac=AA:BB:CC:DD:EE:FF env=ENV10 model=X5 reportedFirmwareVersion=null ipAddress=10.36.115.16 timeZone=null capabilities=null appliedRule=XHomeEnvModel1 ruleType=ENV_MODEL_RULE firmwareVersion=1.6 firmwareDownloadProtocol=tftp firmwareLocation=null firmwareVersionSource=ENV_MODEL_RULE INFO 2018-06-25 18:48:29.999 qtp425995691-16 c.c.h.dataaccess.support.AccessLoggingFilter - method=POST http://misc.xconfds.coast.xcal.tv/xconf/swu/xhome status=200 sourceIP=96.115.88.45 duration=19 payload= eStbMac=aa:bb:cc:dd:ee HttpHeaders: X-Forwarded-For="10.36.115.16" User-Agent="curl/7.48.0" Content-Length="44" |
---|