Announcement Announcement Module
Collapse
No announcement yet.
Logging control in version 1.0.2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logging control in version 1.0.2

    Is there a way to control the size and number of the rollover log files in 1.0.2?
    We use this version in production, so it is critical: we hit the limit now.

    I know how to do it in 2.0.0, but the user guide for 1.0.2 says:

    SpringSource dm Server will automatically roll-over a trace file once it reaches a size of 100MB. Up to
    four rolled-over files will be retained in addition to the trace.log file to which new output is
    appended.


    Is there any solution?

  • #2
    Those parameters cannot, unfortunately, be configured in 1.0.x. You will need to change the source and rebuild (at least) the lib/com.springsource.server.serviceability.output-1.0.2.SR02.jar.

    The package com.springsource.server.serviceability.output.inte rnal contains the class StandardDestinationRegistry which is the file you need to edit. This hard-codes a defaultRolloverPolicy with a 100 Mb file size and passes a literal 4 for the number of files when it constructs (in more than one place) a FileDestination.

    Comment

    Working...
    X