Results 1 to 2 of 2

Thread: Logging control in version 1.0.2

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Posts
    18

    Default 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. #2
    Join Date
    Oct 2008
    Location
    Winchester, UK
    Posts
    535

    Default

    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.
    Glyn Normington
    SpringSource

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •