Service Virtualization

 View Only

  • 1.  Rolling Log file limit in DevTest 10.8.1

    Posted 24 days ago

    Most of the log files which are stored in <DevTest-Home>\lisatmp_10.8.1 roll over to backups when they reach 10Mb.  What I am trying to find is where the number and size of backups are controlled.   Ie can I change from 10Mb to 20Mb, can I change from 10 iterations to 20 iterations.

    registry.log.1 - registry.log.20

    coordinator.log.1 - coordinator.log.20

    simulator.log.1 - simulator.log.20

    vse.log.1 - vse.log.20



    -------------------------------------------


  • 2.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 24 days ago

    yes you can.

    -------------------------------------------



  • 3.  RE: Rolling Log file limit in DevTest 10.8.1

    Posted 24 days ago

    I think my original wording may have been a little confusing.

    Most of the log files which are stored in <DevTest-Home>\lisatmp_10.8.1 roll over to backups when they reach 10Mb.  What I am trying to find is where the number and size of backups are controlled.   
    I need to know the file location(s) and statement syntax to change from 10Mb to 20Mb, and change from 10 iterations to 20 iterations for the following files.

    registry.log.1 - registry.log.20

    coordinator.log.1 - coordinator.log.20

    simulator.log.1 - simulator.log.20

    vse.log.1 - vse.log.20

    -------------------------------------------



  • 4.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 23 days ago

    I think it is these fields in bold: one for the size and the other for the number of logs.

    appender.A1.type = RollingFile
    appender.A1.name = A1
    appender.A1.fileName = ${sys:lisa.tmpdir}/${sys:LISA_LOG}
    appender.A1.filePattern = ${sys:lisa.tmpdir}/${sys:LISA_LOG}.%i
    appender.A1.layout.type = PatternLayout
    appender.A1.layout.pattern = %d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n
    appender.A1.policies.type = Policies
    appender.A1.policies.size.type = SizeBasedTriggeringPolicy
    appender.A1.policies.size.size = 10MB
    appender.A1.strategy.type = DefaultRolloverStrategy
    appender.A1.strategy.max = 5
    appender.A1.strategy.fileIndex = min

    -------------------------------------------



  • 5.  RE: Rolling Log file limit in DevTest 10.8.1

    Posted 23 days ago
    Marcy

    That much I already knew, what I am struggling with is where are the entries for the files I care about instead of the files shown here. If the files in question do not yet have entries what would I need to add to this file or some unknown file to do what I need to do.


    Jay Meadows
    Assistant Vice President | Quality Engineering Enablement | Software Engineer
    c. 336.262.3203 | jay.meadows@usbank.com<mailto:jay.meadows@usbank.com>
    U.S. Bank
    www.usbank.com<http: www.usbank.com>




  • 6.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 23 days ago
    Edited by Marcy Nunns 23 days ago

    I understand.  You are wanting to add new APPENDERS.  What kind of appenders do you want to add?  What  log files are you interested in?

    -------------------------------------------



  • 7.  RE: Rolling Log file limit in DevTest 10.8.1

    Posted 23 days ago
    From my post on forum

    I need to know the file location(s) and statement syntax to change from 10Mb to 20Mb, and change from 10 iterations to 20 iterations for the following files.

    Please note that the appenders shown in logging.properties does not use the same format these 4 files use in lisatmp_10.8.1 (ex “registry.log.1” ). They also do not specify the file names for these 4 files or any of the other standard files.

    registry.log.1 - registry.log.20
    coordinator.log.1 - coordinator.log.20
    simulator.log.1 - simulator.log.20
    vse.log.1 - vse.log.20


    Jay Meadows
    Assistant Vice President | Quality Engineering Enablement | Software Engineer
    c. 336.262.3203 | jay.meadows@usbank.com<mailto:jay.meadows@usbank.com>
    U.S. Bank
    www.usbank.com<http: www.usbank.com>




  • 8.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 23 days ago

    I will find out.

    -------------------------------------------



  • 9.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 23 days ago

    Try this in the logging.properties:

    appender.A1.type = RollingFile
    appender.A1.name = A1
    appender.A1.fileName = ${sys:lisa.tmpdir}/${sys:LISA_LOG}
    appender.A1.filePattern = ${sys:lisa.tmpdir}/${sys:LISA_LOG}.%i
    appender.A1.layout.type = PatternLayout
    appender.A1.layout.pattern = %d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n
    appender.A1.policies.type = Policies
    appender.A1.policies.size.type = SizeBasedTriggeringPolicy
    appender.A1.policies.size.size = 20MB
    appender.A1.strategy.type = DefaultRolloverStrategy
    appender.A1.strategy.max = 20
    appender.A1.strategy.fileIndex = min

    Modify the size and max field to what you want. 

    If you want to redirect where the log write to, in each vmoptions file add property 

    -Dlisa.tmpdir=<location of where you want the log files to write out>

    You will have to restart the components.

    -------------------------------------------



  • 10.  RE: Rolling Log file limit in DevTest 10.8.1

    Posted 23 days ago
    So all I have to do is change two lines in the already existing A1 entry in the logging.properties file and that will update the number of size of entries for all of the standard log files.
    One note the DevTest 10.8.1 documentation says services do not have to be restarted for logging.properties changes to take effect. If that is not true they need to fix the documentation.

    appender.A1.type = RollingFile
    appender.A1.name = A1
    appender.A1.fileName = ${sys:lisa.tmpdir}/${sys:LISA_LOG}
    appender.A1.filePattern = ${sys:lisa.tmpdir}/${sys:LISA_LOG}.%i
    appender.A1.layout.type = PatternLayout
    appender.A1.layout.pattern = %d{ISO8601}{UTC}Z (%d{HH:mm}) [%t] %-5p %-30c - %m%n
    appender.A1.policies.type = Policies
    appender.A1.policies.size.type = SizeBasedTriggeringPolicy
    appender.A1.policies.size.size = 20MB
    appender.A1.strategy.type = DefaultRolloverStrategy
    appender.A1.strategy.max = 20
    appender.A1.strategy.fileIndex = min


    Jay Meadows
    Assistant Vice President | Quality Engineering Enablement | Software Engineer
    c. 336.262.3203 | jay.meadows@usbank.com<mailto:jay.meadows@usbank.com>
    U.S. Bank
    www.usbank.com<http: www.usbank.com>




  • 11.  RE: Rolling Log file limit in DevTest 10.8.1

    Broadcom Employee
    Posted 23 days ago

    Yes, you only need to make changes to those two properties.

    True, changes to the logging.properties file are immediate, no restart of the components. 

    But if you make any changes to the vmoptions files, that will require a restart.

    -------------------------------------------