Service Virtualization

 View Only
  • 1.  Logs are not Updated

    Posted Feb 03, 2020 03:51 AM
    Hi Team,

    We have set  log4j.rootCategory=ERROR,AR values in the logging.poroperties file but vse.logs, portal.logs, registry.logs are not updating and we are using devtest 10.2.4, Could you please let us know the reason


  • 2.  RE: Logs are not Updated

    Broadcom Employee
    Posted Feb 03, 2020 03:57 AM
    Hi Sai
              Please, would you mind posting the complete logging.properties file content here. If you have a constraint to share, please just check if the Appender defined down below in the same document has been defined as AR. By default the appender name is A1.

    --
    regards
    Sankar Natarajan





  • 3.  RE: Logs are not Updated

    Posted Feb 03, 2020 04:04 AM
    Thanks Sankar for quick response, I will update appender name as A1 and will check. I can not share the complete logging.properties file content here, Could you please let me know what is A1 and what AR, how it will impact updating the logs?


  • 4.  RE: Logs are not Updated
    Best Answer

    Broadcom Employee
    Posted Feb 03, 2020 04:12 AM
    HI Sai
               In this entry below, the second parameter is the name of appender which is typically defined in the same document.

    log4j.rootCategory=ERROR,AR  

    Appender Definition:

    log4j.appender.A1=com.itko.util.log4j.TimedRollingFileAppender
    log4j.appender.A1.File=${lisa.tmpdir}/${LISA_LOG}
    log4j.appender.A1.MaxFileSize=10MB
    log4j.appender.A1.MaxBackupIndex=5
    log4j.appender.A1.layout=org.apache.log4j.EnhancedPatternLayout
    log4j.appender.A1.layout.ConversionPattern=%d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n

    You can give any name to the appender, but just make sure whatever name you have given to the appender in this entry, log4j.rootCategory=ERROR,AR, the same name AR is referred in the Appender definition like,

    log4j.appender.AR=com.itko.util.log4j.TimedRollingFileAppender
    log4j.appender.AR.File=${lisa.tmpdir}/${LISA_LOG}
    log4j.appender.AR.MaxFileSize=10MB
    log4j.appender.AR.MaxBackupIndex=5
    log4j.appender.AR.layout=org.apache.log4j.EnhancedPatternLayout
    log4j.appender.AR.layout.ConversionPattern=%d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n  

     Please check and make sure you referred the appender with the same name as it is defined with.
    --
    regards
    Sankar Natarajan